aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-16 20:45:50 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-16 20:45:50 +0000
commit47a0d52b69056250a1edaca8b28f705993094542 (patch)
tree34bc8ba4bdb4c49b1a94da0f6e9514708e3a5ab3 /test
parent5b6f42f57e730c2d968c313a27fa505a3c3e5efa (diff)
downloadexternal_llvm-47a0d52b69056250a1edaca8b28f705993094542.zip
external_llvm-47a0d52b69056250a1edaca8b28f705993094542.tar.gz
external_llvm-47a0d52b69056250a1edaca8b28f705993094542.tar.bz2
ARM thumb assembly parsing for arithmetic flag setting instructions.
Thumb one requires that many arithmetic instruction forms have an 'S' suffix. For Thumb2, the whether the suffix is required or precluded depends on whether the instruction is in an IT block. Use target parser predicates to check for these sorts of context-sensitive constraints. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/mode-switch.s10
-rw-r--r--test/MC/ARM/nop-thumb-padding.s4
-rw-r--r--test/MC/ARM/nop-thumb2-padding.s4
3 files changed, 9 insertions, 9 deletions
diff --git a/test/MC/ARM/mode-switch.s b/test/MC/ARM/mode-switch.s
index 4cc986a..54e23f1 100644
--- a/test/MC/ARM/mode-switch.s
+++ b/test/MC/ARM/mode-switch.s
@@ -4,14 +4,14 @@
.code 16
-@ CHECK: add.w r0, r0, r1 @ encoding: [0x00,0xeb,0x01,0x00]
+@ CHECK: add.w r0, r0, r1 @ encoding: [0x00,0xeb,0x01,0x00]
add.w r0, r0, r1
.code 32
-@ CHECK: add r0, r0, r1 @ encoding: [0x01,0x00,0x80,0xe0]
+@ CHECK: add r0, r0, r1 @ encoding: [0x01,0x00,0x80,0xe0]
add r0, r0, r1
.code 16
-@ CHECK: add r0, r0, r1 @ encoding: [0x40,0x18]
-
- add r0, r0, r1
+@ CHECK: adds r0, r0, r1 @ encoding: [0x40,0x18]
+
+ adds r0, r0, r1
diff --git a/test/MC/ARM/nop-thumb-padding.s b/test/MC/ARM/nop-thumb-padding.s
index c7ef1fd..1e173f1 100644
--- a/test/MC/ARM/nop-thumb-padding.s
+++ b/test/MC/ARM/nop-thumb-padding.s
@@ -5,8 +5,8 @@
.thumb_func x
.code 16
x:
- add r0, r1, r2
+ adds r0, r1, r2
.align 4
- add r0, r1, r2
+ adds r0, r1, r2
@ CHECK: ('_section_data', '8818c046 c046c046 c046c046 c046c046 8818')
diff --git a/test/MC/ARM/nop-thumb2-padding.s b/test/MC/ARM/nop-thumb2-padding.s
index e1570c9..a8aa3a1 100644
--- a/test/MC/ARM/nop-thumb2-padding.s
+++ b/test/MC/ARM/nop-thumb2-padding.s
@@ -5,8 +5,8 @@
.thumb_func x
.code 16
x:
- add r0, r1, r2
+ adds r0, r1, r2
.align 4
- add r0, r1, r2
+ adds r0, r1, r2
@ CHECK: ('_section_data', '881800bf 00bf00bf 00bf00bf 00bf00bf 8818')