Add tests for existing InstSimplify features.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143721 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2011-11-04 18:39:16 +00:00
parent 71d0503157
commit abe776a794

View File

@ -84,6 +84,13 @@ define i64 @test11() {
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 @@ define i64 @test12() {
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 @@ define i64 @test13() {
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() {