[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2003-11-12-CastSubBug.ll

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 12 10:25:01 PST 2003


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

2003-11-12-CastSubBug.ll added (r1.1)

---
Log message:

Reduced testcase for PR 110


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

Index: llvm/test/Regression/Transforms/InstCombine/2003-11-12-CastSubBug.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2003-11-12-CastSubBug.ll:1.1
*** /dev/null	Wed Nov 12 10:24:41 2003
--- llvm/test/Regression/Transforms/InstCombine/2003-11-12-CastSubBug.ll	Wed Nov 12 10:24:30 2003
***************
*** 0 ****
--- 1,9 ----
+ ; llvm-as < %s | opt -instcombine | llvm-dis | grep 'to sbyte'
+ 
+ %.Base64_1 = external constant [4 x sbyte] 
+ 
+ ubyte %test(sbyte %X) {
+ 	%tmp.12 = sub sbyte %X, cast ([4 x sbyte]* %.Base64_1 to sbyte)		; <sbyte> [#uses=1]
+ 	%tmp.13 = cast sbyte %tmp.12 to ubyte		; <ubyte> [#uses=1]
+ 	ret ubyte %tmp.13
+ }





More information about the llvm-commits mailing list