[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/shift.ll

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 12 16:22:02 PDT 2003


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

shift.ll updated: 1.10 -> 1.11

---
Log message:

New testcases


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/InstCombine/shift.ll
diff -u llvm/test/Regression/Transforms/InstCombine/shift.ll:1.10 llvm/test/Regression/Transforms/InstCombine/shift.ll:1.11
--- llvm/test/Regression/Transforms/InstCombine/shift.ll:1.10	Thu Jul 24 13:38:09 2003
+++ llvm/test/Regression/Transforms/InstCombine/shift.ll	Tue Aug 12 16:20:49 2003
@@ -80,3 +80,16 @@
 	%C = shl sbyte %B, ubyte 4
 	ret sbyte %C
 }
+
+uint %test14(uint %A) {
+	%B = shr uint %A, ubyte 4
+	%C = or uint %B, 1234
+	%D = shl uint %C, ubyte 4   ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
+	ret uint %D
+}
+int %test14a(int %A) {
+	%B = shl int %A, ubyte 4
+	%C = and int %B, -1234
+	%D = shr int %C, ubyte 4   ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
+	ret int %D
+}





More information about the llvm-commits mailing list