[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Apr 28 15:17:33 PDT 2006



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

2006-04-28-ShiftShiftLongLong.ll added (r1.1)
---
Log message:

new testcase miscompiled by instcombine


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

 2006-04-28-ShiftShiftLongLong.ll |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll:1.1
*** /dev/null	Fri Apr 28 17:17:30 2006
--- llvm/test/Regression/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll	Fri Apr 28 17:17:20 2006
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl &&
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
+ 
+ ; This cannot be turned into a sign extending cast!
+ 
+ long %test(long %X) {
+ 	%Y = shl long %X, ubyte 16
+ 	%Z = shr long %Y, ubyte 16
+ 	ret long %Z
+ }






More information about the llvm-commits mailing list