diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2006-12-12 14:03:29 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2006-12-12 14:03:29 +0000 |
commit | 2426775c81b32ab0f12eb15e45001303737060c8 (patch) | |
tree | 70f91551e16aa8a2051b8418ad5f59754c294155 /test | |
parent | 78f97f3118c0d7fbebf4084e24689c596d5e4fb7 (diff) |
don't use "ordinary" addressing mode 1 when mvn is appropriate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/mvn.ll | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/mvn.ll b/test/CodeGen/ARM/mvn.ll index d425498ea7..b825cf8ea9 100644 --- a/test/CodeGen/ARM/mvn.ll +++ b/test/CodeGen/ARM/mvn.ll @@ -1,5 +1,5 @@ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm && -; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 5 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 6 int %f1() { entry: @@ -53,3 +53,14 @@ entry: %tmp3not = xor int %tmp3, -1 ; <int> [#uses=1] ret int %tmp3not } + +int %f9() { +entry: + %tmp4845 = add int 0, 0 + br label %cond_true4848 + +cond_true4848: ; preds = %bb4835 + %tmp4851 = sub int -3, 0 ; <int> [#uses=1] + %abc = add int %tmp4851, %tmp4845 + ret int %abc +} |