[x32] Fix FrameIndex check in SelectLEA64_32Addr
[oota-llvm.git] / test / CodeGen / X86 / 2006-05-02-InstrSched1.ll
index 1357419077fcbaab2690f0b45ac45a9e11974665..69266dc4e44ba01fa70679fe3ae1a3af63930e59 100644 (file)
@@ -1,11 +1,14 @@
-; RUN: llvm-as < %s | \
-; RUN:   llc -march=x86 -relocation-model=static -stats |& \
-; RUN:   grep asm-printer | grep 14
+; REQUIRES: asserts
+; RUN: llc < %s -march=x86 -relocation-model=static -stats 2>&1 | \
+; RUN:   grep asm-printer | grep 16
 ;
+; It's possible to schedule this in 14 instructions by avoiding
+; callee-save registers, but the scheduler isn't currently that
+; conervative with registers.
 @size20 = external global i32          ; <i32*> [#uses=1]
 @in5 = external global i8*             ; <i8**> [#uses=1]
 
-define i32 @compare(i8* %a, i8* %b) {
+define i32 @compare(i8* %a, i8* %b) nounwind {
        %tmp = bitcast i8* %a to i32*           ; <i32*> [#uses=1]
        %tmp1 = bitcast i8* %b to i32*          ; <i32*> [#uses=1]
        %tmp.upgrd.1 = load i32* @size20                ; <i32> [#uses=1]
@@ -21,4 +24,3 @@ define i32 @compare(i8* %a, i8* %b) {
 }
 
 declare i32 @memcmp(i8*, i8*, i32)
-