[x86] Fix disassembly of callw instruction
[oota-llvm.git] / test / Transforms / GVN / 2008-07-02-Unreachable.ll
index fc273c30f7f69373a2f391a9df655374b6474b60..ce83fa4e4be9b948e20ee1b4c777a3ec2d265d3a 100644 (file)
@@ -1,20 +1,20 @@
-; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep {ret i8 \[%\]tmp3}
+; RUN: opt < %s -basicaa -gvn -S | grep "ret i8 [%]tmp3"
 ; PR2503
 
 @g_3 = external global i8              ; <i8*> [#uses=2]
 
-define i8 @func_1() nounwind  {
+define i8 @func_1(i32 %x, i32 %y) nounwind  {
 entry:
-       br i1 false, label %ifelse, label %ifthen
+  %A = alloca i8
+    %cmp = icmp eq i32 %x, %y
+       br i1 %cmp, label %ifelse, label %ifthen
 
 ifthen:                ; preds = %entry
        br label %ifend
 
 ifelse:                ; preds = %entry
        %tmp3 = load i8* @g_3           ; <i8> [#uses=0]
-       br label %forcond.thread
-
-forcond.thread:                ; preds = %ifelse
+        store i8 %tmp3, i8* %A
        br label %afterfor
 
 forcond:               ; preds = %forinc