diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-01-28 05:13:17 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-01-28 05:13:17 +0000 |
commit | db34be0e316cee1414f7946ee6b240571588046c (patch) | |
tree | 0118aa14bb0f7061b02f883053f0871978d7f098 /llvm | |
parent | 0af77fd45b98ba53ad585398e6480cf36724048e (diff) | |
download | bcm5719-llvm-db34be0e316cee1414f7946ee6b240571588046c.tar.gz bcm5719-llvm-db34be0e316cee1414f7946ee6b240571588046c.zip |
Clean up the tests a little, make sure we match an instruction in the right
test.
llvm-svn: 124473
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/Transforms/InstCombine/select.ll | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/test/Transforms/InstCombine/select.ll b/llvm/test/Transforms/InstCombine/select.ll index b66b22cff6e..ba9d99c97dd 100644 --- a/llvm/test/Transforms/InstCombine/select.ll +++ b/llvm/test/Transforms/InstCombine/select.ll @@ -695,6 +695,7 @@ define i64 @test50(i32 %a) nounwind { ; This select instruction can't be eliminated because trying to do so would ; change the number of vector elements. This used to assert. define i48 @test51(<3 x i1> %icmp, <3 x i16> %tmp) { +; CHECK: @test51 %select = select <3 x i1> %icmp, <3 x i16> zeroinitializer, <3 x i16> %tmp ; CHECK: select <3 x i1> %tmp2 = bitcast <3 x i16> %select to i48 @@ -703,15 +704,13 @@ define i48 @test51(<3 x i1> %icmp, <3 x i16> %tmp) { ; PR8575 -@g = common global i32 0, align 4 -define void @test52(i32 %n, i32 %m) nounwind { -entry: +define i32 @test52(i32 %n, i32 %m) nounwind { +; CHECK: @test52 %cmp = icmp sgt i32 %n, %m %. = select i1 %cmp, i32 1, i32 3 %add = add nsw i32 %., 3 %storemerge = select i1 %cmp, i32 %., i32 %add ; CHECK: select i1 %cmp, i32 1, i32 6 - store i32 %storemerge, i32* @g, align 4 - ret void + ret i32 %storemerge } |