From 60ea2c5a1805e6341d8ceb7e4db2265460ff4ac7 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Mon, 12 Oct 2009 06:23:56 +0000 Subject: [PATCH] Fix syntax error missed in converting zext.ll test. Convert 2003-11-13-ConstExprCastCall.ll to FileCheck from notcast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83826 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../InstCombine/2003-11-13-ConstExprCastCall.ll | 5 ++++- 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 8fc0f3471df..4d3d48ef375 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 ) ; :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 420cb4a1ff7..bd5aa870d37 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 ; [#uses=1] %c2 = sext i32 %c1 to 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 ; [#uses=1] %tmp17 = or i32 %tmp16, %tmp3 ; [#uses=1] ret i32 %tmp17 -CHECK: ret i1 true +; CHECK: ret i1 true }