aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-12-14 02:16:11 +0000
committerJim Grosbach <grosbach@apple.com>2011-12-14 02:16:11 +0000
commita39cda7aff2d379ad9c15500319ab037baa48747 (patch)
tree28844b3b9e745113fd45ca242f8c10b7cc383870 /test/MC
parentddfd1377d2e4154d44dc3ad217735adc15af2e3f (diff)
downloadexternal_llvm-a39cda7aff2d379ad9c15500319ab037baa48747.zip
external_llvm-a39cda7aff2d379ad9c15500319ab037baa48747.tar.gz
external_llvm-a39cda7aff2d379ad9c15500319ab037baa48747.tar.bz2
ARM assembler support for the target-specific .req directive.
rdar://10549683 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ARM/dot-req.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/ARM/dot-req.s b/test/MC/ARM/dot-req.s
new file mode 100644
index 0000000..3b4cf5c
--- /dev/null
+++ b/test/MC/ARM/dot-req.s
@@ -0,0 +1,11 @@
+@ RUN: llvm-mc -triple=armv7-apple-darwin -show-encoding < %s | FileCheck %s
+ .syntax unified
+bar:
+fred .req r5
+ mov r11, fred
+.unreq fred
+fred .req r6
+ mov r1, fred
+
+@ CHECK: mov r11, r5 @ encoding: [0x05,0xb0,0xa0,0xe1]
+@ CHECK: mov r1, r6 @ encoding: [0x06,0x10,0xa0,0xe1]