diff options
-rw-r--r-- | test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll | 5 | ||||
-rw-r--r-- | test/Transforms/InstCombine/zext.ll | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll b/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll index 8fc0f3471d..4d3d48ef37 100644 --- a/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll +++ b/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll @@ -1,8 +1,11 @@ -; RUN: opt < %s -instcombine -S | grep call | notcast +; RUN: opt < %s -instcombine -S | FileCheck %s declare void @free(i8*) define void @test(i32* %X) { call void (...)* bitcast (void (i8*)* @free to void (...)*)( i32* %X ) ; <i32>:1 [#uses=0] +; CHECK: %tmp = bitcast i32* %X to i8* +; CHECK: call void @free(i8* %tmp) ret void +; CHECK: ret void } diff --git a/test/Transforms/InstCombine/zext.ll b/test/Transforms/InstCombine/zext.ll index 420cb4a1ff..bd5aa870d3 100644 --- a/test/Transforms/InstCombine/zext.ll +++ b/test/Transforms/InstCombine/zext.ll @@ -5,9 +5,9 @@ define i64 @test_sext_zext(i16 %A) { %c1 = zext i16 %A to i32 ; <i32> [#uses=1] %c2 = sext i32 %c1 to i64 ; <i64> [#uses=1] ret i64 %c2 -CHECK-NOT: %c1 -CHECK: %c2 = zext i16 %A to i64 -CHECK: ret i64 %c2 +; CHECK-NOT: %c1 +; CHECK: %c2 = zext i16 %A to i64 +; CHECK: ret i64 %c2 } ; PR3599 @@ -31,6 +31,6 @@ entry: %tmp16 = or i32 %tmp15, %tmp6 ; <i32> [#uses=1] %tmp17 = or i32 %tmp16, %tmp3 ; <i32> [#uses=1] ret i32 %tmp17 -CHECK: ret i1 true +; CHECK: ret i1 true } |