Fix a minor regression from my dag combiner changes. One more place which needs to...
[oota-llvm.git] / test / CodeGen / X86 / 2008-07-11-SpillerBug.ll
index 2acd4988ad2afdaad620c1a7bc8dd5f499715768..88a5fde07e1e7016d01820cf1de25ee0faeeeb32 100644 (file)
@@ -1,7 +1,12 @@
-; RUN: llvm-as < %s | llc -march=x86 -relocation-model=static |\
-; RUN:   %prcontext 65534 1 | grep movl | count 1
+; RUN: llc < %s -march=x86 -relocation-model=static -disable-fp-elim -post-RA-scheduler=false | FileCheck %s
 ; PR2536
 
+
+; CHECK: movw %cx
+; CHECK-NEXT: andl    $65534, %
+; CHECK-NEXT: movl %
+; CHECK-NEXT: movl $17
+
 @g_5 = external global i16             ; <i16*> [#uses=2]
 @g_107 = external global i16           ; <i16*> [#uses=1]
 @g_229 = external global i32           ; <i32*> [#uses=1]
@@ -30,13 +35,13 @@ bb5:                ; preds = %bb
 
 bb7.preheader:         ; preds = %bb5, %bb
        icmp eq i16 %p_56_addr.1.reg2mem.0, 0           ; <i1>:7 [#uses=1]
-       %.0 = select i1 %7, i32 1, i32                ; <i32> [#uses=1]
+       %.0 = select i1 %7, i32 1, i32 %3               ; <i32> [#uses=1]
        urem i32 1, %.0         ; <i32>:8 [#uses=1]
        icmp eq i32 %8, 0               ; <i1>:9 [#uses=1]
        %.not = xor i1 %9, true         ; <i1> [#uses=1]
        %.not1 = xor i1 %5, true                ; <i1> [#uses=1]
        %brmerge = or i1 %.not, %.not1          ; <i1> [#uses=1]
-       %iftmp.6.0 = select i1 %brmerge, i32 1, i32 0           ; <i32> [#uses=1]
+       %iftmp.6.0 = select i1 %brmerge, i32 3, i32 0           ; <i32> [#uses=1]
        mul i32 %iftmp.6.0, %3          ; <i32>:10 [#uses=1]
        icmp eq i32 %10, 0              ; <i1>:11 [#uses=1]
        %p_56_addr.0 = select i1 %11, i16 %p_56_addr.1.reg2mem.0, i16 1         ; <i16> [#uses=1]