Phobos PR 2266 blocked by ICE 12057

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 21 11:09:04 PDT 2014


"H. S. Teoh via Digitalmars-d"  wrote in message 
news:mailman.32.1405963928.32463.digitalmars-d at puremagic.com...

> Phobos pull request 2266 [1] has been blocked by an ICE (issue 12057
> [2]) for almost a month now. I'm wondering if somebody more familiar
> with dmd internals can help fix it.  I've managed to reduce the code
> down to a minimal (or close to minimal) test case:

It looks like fixresult87 (which makes sure the result of an expression is 
in the correct register) sees you wanted a comparison result (mPSW) and that 
your value is not already in mPSW.  It then asserts it's in ST0, which it 
isn't, presumably because it's in an xmm reg, and gives up.

You could try just removing that assert (line 925) or modifying it to accept 
xmm regs, it looks like the line below at least considers them a possibility 
so who knows, it might work.

If that doesn't work you could try checking for xmm regs and calling 
fixresult87 with 'retregs' modified to point to an xmm reg, so it tries to 
do a cross-bank copy.  This is a crime against nature but it might work.

Really only Walter knows how that stuff should work. 



More information about the Digitalmars-d mailing list