Benjamin Kramer 435eba09b7 ConstantFolding: Add a missing folding that leads to a miscompile.
We use constant folding to see if an intrinsic evaluates to the same value as a
constant that we know. If we don't take the undefinedness into account we get a
value that doesn't match the actual implementation, and miscompiled code.

This was uncovered by Chandler's simplifycfg changes.

llvm-svn: 173356
2013-01-24 16:28:28 +00:00
..
2012-02-29 01:53:13 +00:00
2012-10-02 15:49:34 +00:00
2010-01-05 21:54:09 +00:00
2010-07-12 00:19:47 +00:00
2012-11-14 20:18:34 +00:00
2012-12-04 00:04:54 +00:00
2012-12-05 00:33:16 +00:00

This directory contains test cases for the instcombine transformation.  The
dated tests are actual bug tests, whereas the named tests are used to test
for features that the this pass should be capable of performing.