summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb2/carry.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-06-25 23:34:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-06-25 23:34:10 +0000
commit626742231863db0e9aeef1be1fd48e9f4b7e22f8 (patch)
tree493aacbcc694b2ab84e68d197f6323f3bc8bec8c /test/CodeGen/Thumb2/carry.ll
parent0b49c32c56443a41f76c415bddc226488217da2f (diff)
downloadllvm-626742231863db0e9aeef1be1fd48e9f4b7e22f8.tar.gz
llvm-626742231863db0e9aeef1be1fd48e9f4b7e22f8.tar.bz2
llvm-626742231863db0e9aeef1be1fd48e9f4b7e22f8.tar.xz
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/CodeGen/Thumb2/carry.ll')
-rw-r--r--test/CodeGen/Thumb2/carry.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/carry.ll b/test/CodeGen/Thumb2/carry.ll
index aa551c7d47..3450c5aea4 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: