summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2014-06-26 13:10:53 +0000
committerRenato Golin <renato.golin@linaro.org>2014-06-26 13:10:53 +0000
commit7eacf4e8139b10c10662a155b78ca33e12a61217 (patch)
tree7cfc2d0e707ee5f428d5fdf4eff5e7d8c4412f37 /test
parent817812f61caa50ba3ce67ceb5a033cb69a3eea5c (diff)
downloadllvm-7eacf4e8139b10c10662a155b78ca33e12a61217.tar.gz
llvm-7eacf4e8139b10c10662a155b78ca33e12a61217.tar.bz2
llvm-7eacf4e8139b10c10662a155b78ca33e12a61217.tar.xz
Added parsing co-processor names starting with "cr"
Additional compliant GAS names for coprocessor register name are enabled for all instruction with parameter MCK_CoprocReg: LDC,LDC2,STC,STC2,CDP,CDP2,MCR,MCR2,MCRR,MCRR2,MRC,MRC2,MRRC,MRRC2 Patch by Andrey Kuharev. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/gas-compl-copr-reg.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/MC/ARM/gas-compl-copr-reg.s b/test/MC/ARM/gas-compl-copr-reg.s
new file mode 100644
index 0000000000..ab0b023958
--- /dev/null
+++ b/test/MC/ARM/gas-compl-copr-reg.s
@@ -0,0 +1,14 @@
+@ RUN: llvm-mc -triple=armv7-linux-gnueabi -show-encoding < %s | FileCheck %s
+
+@ CHECK: ldc p12, c4, [r0, #4] @ encoding: [0x01,0x4c,0x90,0xed]
+@ CHECK: stc p14, c6, [r2, #-224] @ encoding: [0x38,0x6e,0x02,0xed]
+
+ ldc p12, cr4, [r0, #4]
+ stc p14, cr6, [r2, #-224]
+@ RUN: llvm-mc -triple=armv7-linux-gnueabi -show-encoding < %s | FileCheck %s
+
+@ CHECK: ldc p12, c4, [r0, #4] @ encoding: [0x01,0x4c,0x90,0xed]
+@ CHECK: stc p14, c6, [r2, #-224] @ encoding: [0x38,0x6e,0x02,0xed]
+
+ ldc p12, cr4, [r0, #4]
+ stc p14, cr6, [r2, #-224]