[llvm-commits] [llvm] r143721 - /llvm/trunk/test/Transforms/InstSimplify/undef.ll
Dan Gohman
gohman at apple.com
Fri Nov 4 11:39:16 PDT 2011
Author: djg
Date: Fri Nov 4 13:39:16 2011
New Revision: 143721
URL: http://llvm.org/viewvc/llvm-project?rev=143721&view=rev
Log:
Add tests for existing InstSimplify features.
Modified:
llvm/trunk/test/Transforms/InstSimplify/undef.ll
Modified: llvm/trunk/test/Transforms/InstSimplify/undef.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstSimplify/undef.ll?rev=143721&r1=143720&r2=143721&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstSimplify/undef.ll (original)
+++ llvm/trunk/test/Transforms/InstSimplify/undef.ll Fri Nov 4 13:39:16 2011
@@ -84,6 +84,13 @@
ret i64 %r
}
+; @test11b
+; CHECK: ret i64 undef
+define i64 @test11b(i64 %a) {
+ %r = shl i64 %a, undef
+ ret i64 %r
+}
+
; @test12
; CHECK: ret i64 undef
define i64 @test12() {
@@ -91,6 +98,13 @@
ret i64 %r
}
+; @test12b
+; CHECK: ret i64 undef
+define i64 @test12b(i64 %a) {
+ %r = ashr i64 %a, undef
+ ret i64 %r
+}
+
; @test13
; CHECK: ret i64 undef
define i64 @test13() {
@@ -98,6 +112,13 @@
ret i64 %r
}
+; @test13b
+; CHECK: ret i64 undef
+define i64 @test13b(i64 %a) {
+ %r = lshr i64 %a, undef
+ ret i64 %r
+}
+
; @test14
; CHECK: ret i1 undef
define i1 @test14() {
More information about the llvm-commits
mailing list