diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-06-25 23:34:10 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-06-25 23:34:10 +0000 |
commit | 626742231863db0e9aeef1be1fd48e9f4b7e22f8 (patch) | |
tree | 493aacbcc694b2ab84e68d197f6323f3bc8bec8c /test | |
parent | 0b49c32c56443a41f76c415bddc226488217da2f (diff) | |
download | external_llvm-626742231863db0e9aeef1be1fd48e9f4b7e22f8.zip external_llvm-626742231863db0e9aeef1be1fd48e9f4b7e22f8.tar.gz external_llvm-626742231863db0e9aeef1be1fd48e9f4b7e22f8.tar.bz2 |
Select ADC, SBC, and RSC instead of the ADCS, SBCS, and RSCS when the carry bit def is not used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/carry.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/carry.ll | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/ARM/carry.ll b/test/CodeGen/ARM/carry.ll index 82a5693..3bf2dc0 100644 --- a/test/CodeGen/ARM/carry.ll +++ b/test/CodeGen/ARM/carry.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as < %s | llc -march=arm | grep "subs r" | count 2 -; RUN: llvm-as < %s | llc -march=arm | grep adc -; RUN: llvm-as < %s | llc -march=arm | grep sbc +; RUN: llvm-as < %s | llc -march=arm | grep "adc r" +; RUN: llvm-as < %s | llc -march=arm | grep "sbc r" | count 2 define i64 @f1(i64 %a, i64 %b) { entry: diff --git a/test/CodeGen/Thumb2/carry.ll b/test/CodeGen/Thumb2/carry.ll index aa551c7..3450c5a 100644 --- a/test/CodeGen/Thumb2/carry.ll +++ b/test/CodeGen/Thumb2/carry.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep "subs r" | count 2 -; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep adc -; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep sbc +; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep "adc r" +; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep "sbc r" | count 2 define i64 @f1(i64 %a, i64 %b) { entry: |