mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 05:23:45 +02:00
7a0d14f876
"hint" space for Thumb actually overlaps the encoding space of the CPS instruction. In actuality, hints can be defined as CPS instructions where imod and M bits are all nil. Handle decoding of permitted nop-compatible hints (i.e. nop, yield, wfi, wfe, sev) in DecodeT2CPSInstruction. This commit adds a proper diagnostic message for Imm0_4 and updates all tests. Patch by Mihail Popa <Mihail.Popa@arm.com>. llvm-svn: 180617
10 lines
298 B
ArmAsm
10 lines
298 B
ArmAsm
@ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s
|
|
|
|
hint #5
|
|
hint.w #5
|
|
hint #100
|
|
|
|
@ CHECK: error: immediate operand must be in the range [0,4]
|
|
@ CHECK: error: immediate operand must be in the range [0,4]
|
|
@ CHECK: error: immediate operand must be in the range [0,4]
|