summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorMihai Popa <mihail.popa@gmail.com>2013-08-06 16:07:46 +0000
committerMihai Popa <mihail.popa@gmail.com>2013-08-06 16:07:46 +0000
commitc34bf73ebb6b15a455aaca642fe4c0f2ba33f795 (patch)
tree52d511f3f70c57d04af14a227de05d63afe91c18 /llvm/test
parent8f49a45c68d16a4598aa741d93be9338b6df5c95 (diff)
downloadbcm5719-llvm-c34bf73ebb6b15a455aaca642fe4c0f2ba33f795.tar.gz
bcm5719-llvm-c34bf73ebb6b15a455aaca642fe4c0f2ba33f795.zip
This corrects creation of operands for t2PLDW. It also removes the definition of t2PLDWpci,
as pldw does not have a literal variant (i.e. pc relative version) llvm-svn: 187804
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/ARM/thumb-diagnostics.s5
-rw-r--r--llvm/test/MC/ARM/thumb2-pldw.s4
2 files changed, 7 insertions, 2 deletions
diff --git a/llvm/test/MC/ARM/thumb-diagnostics.s b/llvm/test/MC/ARM/thumb-diagnostics.s
index 6f822d1c8e8..a194ab4f22e 100644
--- a/llvm/test/MC/ARM/thumb-diagnostics.s
+++ b/llvm/test/MC/ARM/thumb-diagnostics.s
@@ -156,3 +156,8 @@ error: invalid operand for instruction
@ CHECK-ERRORS: yield
@ CHECK-ERRORS: ^
+@------------------------------------------------------------------------------
+@ PLDW required mp-extensions
+@------------------------------------------------------------------------------
+ pldw [r0, #4]
+@ CHECK-ERRORS: error: instruction requires: mp-extensions
diff --git a/llvm/test/MC/ARM/thumb2-pldw.s b/llvm/test/MC/ARM/thumb2-pldw.s
index 7acbd39cbd3..f0eeaf9297a 100644
--- a/llvm/test/MC/ARM/thumb2-pldw.s
+++ b/llvm/test/MC/ARM/thumb2-pldw.s
@@ -3,5 +3,5 @@
@------------------------------------------------------------------------------
@ PLD(literal)
@------------------------------------------------------------------------------
- pldw [pc,#-4095]
-@ CHECK: pldw [pc, #-4095] @ encoding: [0x3f,0xf8,0xff,0xff]
+ pldw [r0, #257]
+@ CHECK: pldw [r0, #257] @ encoding: [0xb0,0xf8,0x01,0xf1]
OpenPOWER on IntegriCloud