summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-12-06 04:49:29 +0000
committerJim Grosbach <grosbach@apple.com>2011-12-06 04:49:29 +0000
commitdf33e0d05e6b7dc3d65cdb96e52fb6fb6b07f876 (patch)
treef3521c4b2700b855804871ef62c94c9c9ab11426 /test
parent286ea03382a5daa1b20f780f40807f1a0257a62e (diff)
downloadllvm-df33e0d05e6b7dc3d65cdb96e52fb6fb6b07f876.tar.gz
llvm-df33e0d05e6b7dc3d65cdb96e52fb6fb6b07f876.tar.bz2
llvm-df33e0d05e6b7dc3d65cdb96e52fb6fb6b07f876.tar.xz
Thumb2 encoding choice correction for PLD.
Using encoding T1 for offset of #0 and encoding T2 for #-0. rdar://10532413 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index 205ca35a45..5de5104ac3 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -1371,12 +1371,16 @@ _func:
pld [r6, #33]
pld [r6, #257]
pld [r7, #257]
+ pld [r1, #0]
+ pld [r1, #-0]
@ CHECK: pld [r5, #-4] @ encoding: [0x15,0xf8,0x04,0xfc]
@ CHECK: pld [r6, #32] @ encoding: [0x96,0xf8,0x20,0xf0]
@ CHECK: pld [r6, #33] @ encoding: [0x96,0xf8,0x21,0xf0]
@ CHECK: pld [r6, #257] @ encoding: [0x96,0xf8,0x01,0xf1]
@ CHECK: pld [r7, #257] @ encoding: [0x97,0xf8,0x01,0xf1]
+@ CHECK: pld [r1] @ encoding: [0x91,0xf8,0x00,0xf0]
+@ CHECK: pld [r1, #-0] @ encoding: [0x11,0xf8,0x00,0xfc]
@------------------------------------------------------------------------------