[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll

Chris Lattner lattner at cs.uiuc.edu
Mon Feb 23 14:21:09 PST 2004


Changes in directory llvm/test/Regression/Transforms/InstCombine:

2004-02-23-ShiftShiftOverflow.ll added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:  (+8 -0)

Index: llvm/test/Regression/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll:1.1
*** /dev/null	Mon Feb 23 14:20:01 2004
--- llvm/test/Regression/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll	Mon Feb 23 14:19:51 2004
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 34
+ 
+ int %test(int %X) {
+ 	; Do not fold into shr X, 34, as this uses undefined behavior!
+ 	%Y = shr int %X, ubyte 17
+ 	%Z = shr int %Y, ubyte 17
+ 	ret int %Z
+ }





More information about the llvm-commits mailing list