diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-05-19 01:22:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-05-19 01:22:52 +0000 |
| commit | 8a282967efead093e8be526d6997e446d6e09b86 (patch) | |
| tree | 3d5307336b82820ceea78fbec72c5115d165efa8 /test/CodeGen | |
| parent | fb3e1190fc33c93a7185695051d5aeeaddbae0ad (diff) | |
| download | llvm-8a282967efead093e8be526d6997e446d6e09b86.tar.gz llvm-8a282967efead093e8be526d6997e446d6e09b86.tar.bz2 llvm-8a282967efead093e8be526d6997e446d6e09b86.tar.xz | |
add source
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/X86/lsr-negative-stride.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/lsr-negative-stride.ll b/test/CodeGen/X86/lsr-negative-stride.ll index 5b9711e18a..7e906fc57a 100644 --- a/test/CodeGen/X86/lsr-negative-stride.ll +++ b/test/CodeGen/X86/lsr-negative-stride.ll @@ -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] |
