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
This commit is contained in:
Edward O'Callaghan 2009-10-12 06:23:56 +00:00
parent 853075e762
commit 60ea2c5a18
2 changed files with 8 additions and 5 deletions

View File

@ -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
}

View File

@ -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
}