Fix syntax error missed in converting zext.ll test. Convert 2003-11-13-ConstExprCastC...
authorEdward O'Callaghan <eocallaghan@auroraux.org>
Mon, 12 Oct 2009 06:23:56 +0000 (06:23 +0000)
committerEdward O'Callaghan <eocallaghan@auroraux.org>
Mon, 12 Oct 2009 06:23:56 +0000 (06:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83826 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll
test/Transforms/InstCombine/zext.ll

index 8fc0f3471dfd8fad12c288d6e6474944317778f3..4d3d48ef375f6a63b2eb4a11de853a8a6b5414dc 100644 (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
 }
index 420cb4a1ff7781a9c4a6256825509a6938e4fc0d..bd5aa870d373ce4b446c9bd8206dc4a502a1207d 100644 (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
 }