This test has no checks; it doesn't even pipe output to grep.
In an amazing display of architectural restraint, x86 doesn't have fneg instructions. :)
So check for the xor (and possibly sub) that are required to make fneg happen.
Differential D4812
fix a test that has no checks spatel on Aug 6 2014, 9:41 AM. Authored by
Details This test has no checks; it doesn't even pipe output to grep. In an amazing display of architectural restraint, x86 doesn't have fneg instructions. :)
Diff Detail Event TimelineComment Actions LGTM. Minor comment below.
Comment Actions
|
I suspect you're going to have trouble getting this to portably match. I would use a triple such as the bare metal 'x86_64-unknown-unknown' one to get a more stable pattern.
What we really should do is add comprehensive verbose asm comments that expand constant pool operands in the comment so that we can file check them in-line.
You can see some of how to do this with my changes to X86MCInstLower.cpp for comments on PSHUFB instructions if your interested... But it'll be somewhat complex. Clearly no need to do that for this patch.