[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll
Chris Lattner
sabre at nondot.org
Fri Nov 10 15:38:15 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
2006-11-10-ashr-miscompile.ll added (r1.1)
---
Log message:
This testcase is miscompiled by instcombine, reduced from 176.gcc
---
Diffs of the changes: (+7 -0)
2006-11-10-ashr-miscompile.ll | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll:1.1
*** /dev/null Fri Nov 10 17:38:04 2006
--- llvm/test/Regression/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll Fri Nov 10 17:37:54 2006
***************
*** 0 ****
--- 1,7 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep lshr
+ ; Verify this is not turned into -1.
+
+ int %test(ubyte %amt) {
+ %B = lshr int -1, ubyte %amt
+ ret int %B
+ }
More information about the llvm-commits
mailing list