diff options
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ARM/thumb2-ldrd.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb2-ldrd.s b/test/MC/ARM/thumb2-ldrd.s new file mode 100644 index 0000000..4463c21 --- /dev/null +++ b/test/MC/ARM/thumb2-ldrd.s @@ -0,0 +1,9 @@ +// RUN: not llvm-mc -arch thumb -mattr=+thumb2 \ +// RUN: < %s >/dev/null 2> %t +// RUN: grep "error: destination operands can't be identical" %t | count 4 +// rdar://14479780 + +ldrd r0, r0, [pc, #0] +ldrd r0, r0, [r1, #4] +ldrd r0, r0, [r1], #4 +ldrd r0, r0, [r1, #4]! |