diff options
author | Tim Northover <tnorthover@apple.com> | 2014-06-23 09:20:02 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-06-23 09:20:02 +0000 |
commit | 6f7e87c7514c5d287cff80b033f1877059133177 (patch) | |
tree | 65add62abfefcf3e513f96ba6991e5db8efea8ae /test/MC | |
parent | 139f2f15651a805b6ba2f0e34f9b345f5f46b553 (diff) | |
download | llvm-6f7e87c7514c5d287cff80b033f1877059133177.tar.gz llvm-6f7e87c7514c5d287cff80b033f1877059133177.tar.bz2 llvm-6f7e87c7514c5d287cff80b033f1877059133177.tar.xz |
ARM: mark UBFX as not allowing PC.
Strictly, it's unpredictable. But we don't quite model that yet and an error is
better than ignoring the issue. This one somehow got left out before though.
rdar://problem/15997748
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ARM/diagnostics.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/ARM/diagnostics.s b/test/MC/ARM/diagnostics.s index 62d7daea28..88c5fb5b68 100644 --- a/test/MC/ARM/diagnostics.s +++ b/test/MC/ARM/diagnostics.s @@ -351,6 +351,24 @@ @ CHECK-ERRORS: ubfxgt r4, r5, #16, #17 @ CHECK-ERRORS: ^ + @ Using pc for SBFX/UBFX + sbfx pc, r2, #1, #3 + sbfx sp, pc, #4, #5 + ubfx pc, r0, #0, #31 + ubfx r14, pc, #1, #2 +@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: sbfx pc, r2, #1, #3 +@ CHECK-ERRORS: ^ +@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: sbfx sp, pc, #4, #5 +@ CHECK-ERRORS: ^ +@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: ubfx pc, r0, #0, #31 +@ CHECK-ERRORS: ^ +@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: ubfx r14, pc, #1, #2 +@ CHECK-ERRORS: ^ + @ Out of order Rt/Rt2 operands for ldrd ldrd r4, r3, [r8] ldrd r4, r3, [r8, #8]! |