[llvm-commits] CVS: llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll
Reid Spencer
reid at x10sys.com
Wed Mar 21 17:50:06 PDT 2007
Changes in directory llvm/test/Transforms/InstCombine:
2007-03-21-SignedRangeTest.ll added (r1.1)
---
Log message:
Test case for PR1248: http://llvm.org/PR1248
---
Diffs of the changes: (+7 -0)
2007-03-21-SignedRangeTest.ll | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll
diff -c /dev/null llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll:1.1
*** /dev/null Wed Mar 21 19:49:50 2007
--- llvm/test/Transforms/InstCombine/2007-03-21-SignedRangeTest.ll Wed Mar 21 19:49:40 2007
***************
*** 0 ****
--- 1,7 ----
+ ; For PR1248
+ ; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | grep 'ugt i32 %tmp6, 11'
+ define i1 @test(i32 %tmp6) {
+ %tmp7 = sdiv i32 %tmp6, 12 ; <i32> [#uses=1]
+ icmp ne i32 %tmp7, -6 ; <i1>:1 [#uses=1]
+ ret i1 %1
+ }
More information about the llvm-commits
mailing list