summaryrefslogtreecommitdiff
path: root/test/MC/ARM
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-09-25 00:08:13 +0000
committerJim Grosbach <grosbach@apple.com>2012-09-25 00:08:13 +0000
commitfbc21fabaef9a74334c54574a4949f864451f1b6 (patch)
treef4c83354397abdd2c1487de13dea28007f0ef6a4 /test/MC/ARM
parent1afd6bb93998d85582d85a0258bb9976061d86dd (diff)
downloadllvm-fbc21fabaef9a74334c54574a4949f864451f1b6.tar.gz
llvm-fbc21fabaef9a74334c54574a4949f864451f1b6.tar.bz2
llvm-fbc21fabaef9a74334c54574a4949f864451f1b6.tar.xz
ARM: 'add Rd, pc, #imm' is an alias for 'adr Rd, #imm'.
rdar://9795790 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM')
-rw-r--r--test/MC/ARM/arm-arithmetic-aliases.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MC/ARM/arm-arithmetic-aliases.s b/test/MC/ARM/arm-arithmetic-aliases.s
index 9895cfc02b..3ed4448581 100644
--- a/test/MC/ARM/arm-arithmetic-aliases.s
+++ b/test/MC/ARM/arm-arithmetic-aliases.s
@@ -124,3 +124,7 @@ bicseq r2, r3
@ CHECK: bicseq r2, r2, #6 @ encoding: [0x06,0x20,0xd2,0x03]
@ CHECK: bicseq r2, r2, r3 @ encoding: [0x03,0x20,0xd2,0x01]
@ CHECK: bicseq r2, r2, r3 @ encoding: [0x03,0x20,0xd2,0x01]
+
+add r0, pc, #123
+
+@ CHECK: adr r0, #123 @ encoding: [0x7b,0x00,0x8f,0xe2]