Back out r160101 and instead implement a dag combine to recover from instcombine...
[oota-llvm.git] / test / Transforms / InstCombine / 2008-06-24-StackRestore.ll
index 9ed7be38c6aa1a0b10b0eeb7c3fb50b0c10bd2da..9c4c1b538c4b38b803fa93a398279a924849ece0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {call.*llvm.stackrestore}
+; RUN: opt < %s -instcombine -S | grep "call.*llvm.stackrestore"
 ; PR2488
 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"
 target triple = "i386-pc-linux-gnu"
@@ -10,7 +10,7 @@ entry:
        %tmp2752 = alloca i32           ; <i32*> [#uses=2]
        %tmpcast53 = bitcast i32* %tmp2752 to i8*               ; <i8*> [#uses=1]
        store i32 2, i32* %tmp2752, align 4
-       volatile store i8* %tmpcast53, i8** @p, align 4
+       store volatile i8* %tmpcast53, i8** @p, align 4
        br label %bb44
 
 bb:            ; preds = %bb44
@@ -29,7 +29,7 @@ bb44:         ; preds = %bb44, %entry
        store i32 1, i32* %tmp27, align 4
        %tmp34 = getelementptr i32* %tmp27, i32 %tmp4           ; <i32*> [#uses=1]
        store i32 2, i32* %tmp34, align 4
-       volatile store i8* %tmpcast, i8** @p, align 4
+       store volatile i8* %tmpcast, i8** @p, align 4
        %exitcond = icmp eq i32 %tmp3857, 999999                ; <i1> [#uses=1]
        br i1 %exitcond, label %bb, label %bb44
 }