diff options
| author | Jim Grosbach <grosbach@apple.com> | 2011-10-28 16:57:07 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2011-10-28 16:57:07 +0000 |
| commit | 7a49575d7f9bb15bc0fc1c785f9e867745c6b0ce (patch) | |
| tree | 377f0561fc1c85c421c1dbb1c942d0b9586a0f4a /llvm/test/MC/ARM/thumb-diagnostics.s | |
| parent | 6acb14818d415091b465195aba9b746f9a17df49 (diff) | |
| download | bcm5719-llvm-7a49575d7f9bb15bc0fc1c785f9e867745c6b0ce.tar.gz bcm5719-llvm-7a49575d7f9bb15bc0fc1c785f9e867745c6b0ce.zip | |
Thumb2 ADD/SUB instructions encoding selection outside IT block.
Outside an IT block, "add r3, #2" should select a 32-bit wide encoding
rather than generating an error indicating the 16-bit encoding is only
legal in an IT block (outside, the 'S' suffic is required for the 16-bit
encoding).
rdar://10348481
llvm-svn: 143201
Diffstat (limited to 'llvm/test/MC/ARM/thumb-diagnostics.s')
| -rw-r--r-- | llvm/test/MC/ARM/thumb-diagnostics.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/MC/ARM/thumb-diagnostics.s b/llvm/test/MC/ARM/thumb-diagnostics.s index d02c27e1ae0..548ba70bfc7 100644 --- a/llvm/test/MC/ARM/thumb-diagnostics.s +++ b/llvm/test/MC/ARM/thumb-diagnostics.s @@ -125,10 +125,10 @@ error: invalid operand for instruction add sp, #3 add sp, sp, #512 add r2, sp, #1024 -@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: error: instruction requires a CPU feature not currently enabled @ CHECK-ERRORS: add sp, #-1 @ CHECK-ERRORS: ^ -@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: error: instruction requires a CPU feature not currently enabled @ CHECK-ERRORS: add sp, #3 @ CHECK-ERRORS: ^ @ CHECK-ERRORS: error: instruction requires a CPU feature not currently enabled |

