[x86] Fix disassembly of callw instruction
[oota-llvm.git] / test / Transforms / GVN / 2008-07-02-Unreachable.ll
index 4f07868a1ccbb8340b33e04479820d6c1ad4af96..ce83fa4e4be9b948e20ee1b4c777a3ec2d265d3a 100644 (file)
@@ -3,10 +3,11 @@
 
 @g_3 = external global i8              ; <i8*> [#uses=2]
 
-define i8 @func_1() nounwind  {
+define i8 @func_1(i32 %x, i32 %y) nounwind  {
 entry:
   %A = alloca i8
-       br i1 false, label %ifelse, label %ifthen
+    %cmp = icmp eq i32 %x, %y
+       br i1 %cmp, label %ifelse, label %ifthen
 
 ifthen:                ; preds = %entry
        br label %ifend
@@ -14,9 +15,6 @@ ifthen:               ; preds = %entry
 ifelse:                ; preds = %entry
        %tmp3 = load i8* @g_3           ; <i8> [#uses=0]
         store i8 %tmp3, i8* %A
-       br label %forcond.thread
-
-forcond.thread:                ; preds = %ifelse
        br label %afterfor
 
 forcond:               ; preds = %forinc