aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-31 18:23:08 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-31 18:23:08 +0000
commit72335d55d972dd7279fe68ed05fa3c4e7fce9345 (patch)
tree6ff56f3a4a88e3f7af0032775618d931aaf4df42 /test
parentb71541a2db814019c4c7a54fa3700b54b263489e (diff)
downloadexternal_llvm-72335d55d972dd7279fe68ed05fa3c4e7fce9345.zip
external_llvm-72335d55d972dd7279fe68ed05fa3c4e7fce9345.tar.gz
external_llvm-72335d55d972dd7279fe68ed05fa3c4e7fce9345.tar.bz2
Thumb2 parsing and encoding for ADC(register).
Also add instruction aliases for non-.w versions of SBC since they're the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index 61d6514..d00566a 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -38,6 +38,28 @@ _func:
@ CHECK: adc r4, r2, #1664 @ encoding: [0x42,0xf5,0xd0,0x64]
@------------------------------------------------------------------------------
+@ ADC (register)
+@------------------------------------------------------------------------------
+ adc r4, r5, r6
+ adcs r4, r5, r6
+ adc.w r9, r1, r3
+ adcs.w r9, r1, r3
+ adc r0, r1, r3, ror #4
+ adcs r0, r1, r3, lsl #7
+ adc.w r0, r1, r3, lsr #31
+ adcs.w r0, r1, r3, asr #32
+
+@ CHECK: adc.w r4, r5, r6 @ encoding: [0x45,0xeb,0x06,0x04]
+@ CHECK: adcs.w r4, r5, r6 @ encoding: [0x55,0xeb,0x06,0x04]
+@ CHECK: adc.w r9, r1, r3 @ encoding: [0x41,0xeb,0x03,0x09]
+@ CHECK: adcs.w r9, r1, r3 @ encoding: [0x51,0xeb,0x03,0x09]
+@ CHECK: adc.w r0, r1, r3, ror #4 @ encoding: [0x41,0xeb,0x33,0x10]
+@ CHECK: adcs.w r0, r1, r3, lsl #7 @ encoding: [0x51,0xeb,0xc3,0x10]
+@ CHECK: adc.w r0, r1, r3, lsr #31 @ encoding: [0x41,0xeb,0xd3,0x70]
+@ CHECK: adcs.w r0, r1, r3, asr #32 @ encoding: [0x51,0xeb,0x23,0x00]
+
+
+@------------------------------------------------------------------------------
@ CBZ/CBNZ
@------------------------------------------------------------------------------
cbnz r7, #6