[llvm-commits] CVS: llvm/test/CodeGen/X86/lsr-negative-stride.ll
Chris Lattner
sabre at nondot.org
Fri May 18 18:23:10 PDT 2007
Changes in directory llvm/test/CodeGen/X86:
lsr-negative-stride.ll updated: 1.1 -> 1.2
---
Log message:
add source
---
Diffs of the changes: (+12 -0)
lsr-negative-stride.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/CodeGen/X86/lsr-negative-stride.ll
diff -u llvm/test/CodeGen/X86/lsr-negative-stride.ll:1.1 llvm/test/CodeGen/X86/lsr-negative-stride.ll:1.2
--- llvm/test/CodeGen/X86/lsr-negative-stride.ll:1.1 Fri May 18 20:21:39 2007
+++ llvm/test/CodeGen/X86/lsr-negative-stride.ll Fri May 18 20:22:52 2007
@@ -2,6 +2,18 @@
; RUN: llvm-as < %s | llc -march=x86 | not grep sub.*esp
; RUN: llvm-as < %s | llc -march=x86 | not grep esi
+; 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) {
entry:
%tmp1434 = icmp eq i32 %a, %b ; <i1> [#uses=1]
More information about the llvm-commits
mailing list