X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Flsr-negative-stride.ll;h=b08356c8d3097c075ad9632089a81b0a99e505bb;hb=44226ffc191e55f35703fc49322a97f3cbbf8c91;hp=5b9711e18a6b6e1367fb377f43c18070178fa0f0;hpb=b0e07dd19a5fb6c556fdc6e67e605103b30a7d9f;p=oota-llvm.git diff --git a/test/CodeGen/X86/lsr-negative-stride.ll b/test/CodeGen/X86/lsr-negative-stride.ll index 5b9711e18a6..b08356c8d30 100644 --- a/test/CodeGen/X86/lsr-negative-stride.ll +++ b/test/CodeGen/X86/lsr-negative-stride.ll @@ -1,8 +1,22 @@ -; RUN: llvm-as < %s | llc -march=x86 | not grep neg -; RUN: llvm-as < %s | llc -march=x86 | not grep sub.*esp -; RUN: llvm-as < %s | llc -march=x86 | not grep esi +; RUN: llc < %s -march=x86 > %t +; RUN: not grep neg %t +; RUN: not grep sub.*esp %t +; RUN: not grep esi %t +; RUN: not grep push %t -define i32 @t(i32 %a, i32 %b) { +; This corresponds to: +;int t(int a, int b) { +; while (a != b) { +; if (a > b) +; a -= b; +; else +; b -= a; +; } +; return a; +;} + + +define i32 @t(i32 %a, i32 %b) nounwind { entry: %tmp1434 = icmp eq i32 %a, %b ; [#uses=1] br i1 %tmp1434, label %bb17, label %bb.outer