[x86][AVX512]
[oota-llvm.git] / test / CodeGen / X86 / 2009-08-06-branchfolder-crash.ll
index 2c8cf0c8cd56c35232a841c01f924e7fc0ab2773..a70861dcf849f8f4c24a8fa288bee791bbe5204b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -O3
+; RUN: llc < %s -O3
 ; PR4626
 ; ModuleID = '<stdin>'
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
@@ -43,12 +43,12 @@ entry:
        br i1 %tobool, label %lor.lhs.false, label %if.then
 
 lor.lhs.false:         ; preds = %entry
-       %tmp1 = load i8* @g_3           ; <i8> [#uses=1]
+       %tmp1 = load i8, i8* @g_3               ; <i8> [#uses=1]
        %tobool3 = icmp eq i8 %tmp1, 0          ; <i1> [#uses=1]
        br i1 %tobool3, label %return, label %if.then
 
 if.then:               ; preds = %lor.lhs.false, %entry
-       %tmp4 = load i8* @g_3           ; <i8> [#uses=1]
+       %tmp4 = load i8, i8* @g_3               ; <i8> [#uses=1]
        %conv5 = sext i8 %tmp4 to i32           ; <i32> [#uses=1]
        ret i32 %conv5
 
@@ -87,20 +87,18 @@ for.inc:            ; preds = %for.inc, %lor.end.i, %lor.rhs.i, %land.lhs.true3.i
        br label %for.inc
 }
 
-declare i32 @safe()
-
 define i32 @func_35(i8 signext %p_35) nounwind readonly {
 entry:
   %tobool = icmp eq i8 %p_35, 0                   ; <i1> [#uses=1]
   br i1 %tobool, label %lor.lhs.false, label %if.then
 
 lor.lhs.false:                                    ; preds = %entry
-  %tmp1 = load i8* @g_3                           ; <i8> [#uses=1]
+  %tmp1 = load i8, i8* @g_3                           ; <i8> [#uses=1]
   %tobool3 = icmp eq i8 %tmp1, 0                  ; <i1> [#uses=1]
   br i1 %tobool3, label %return, label %if.then
 
 if.then:                                          ; preds = %lor.lhs.false, %entry
-  %tmp4 = load i8* @g_3                           ; <i8> [#uses=1]
+  %tmp4 = load i8, i8* @g_3                           ; <i8> [#uses=1]
   %conv5 = sext i8 %tmp4 to i32                   ; <i32> [#uses=1]
   ret i32 %conv5