[llvm-commits] [llvm] r124473 - /llvm/trunk/test/Transforms/InstCombine/select.ll
Nick Lewycky
nicholas at mxc.ca
Thu Jan 27 21:13:17 PST 2011
Author: nicholas
Date: Thu Jan 27 23:13:17 2011
New Revision: 124473
URL: http://llvm.org/viewvc/llvm-project?rev=124473&view=rev
Log:
Clean up the tests a little, make sure we match an instruction in the right
test.
Modified:
llvm/trunk/test/Transforms/InstCombine/select.ll
Modified: llvm/trunk/test/Transforms/InstCombine/select.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/select.ll?rev=124473&r1=124472&r2=124473&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/select.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/select.ll Thu Jan 27 23:13:17 2011
@@ -695,6 +695,7 @@
; 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 @@
; PR8575
- at 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
}
More information about the llvm-commits
mailing list