mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
1ad3a410be
"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>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180617 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
482 B
Plaintext
14 lines
482 B
Plaintext
# RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -disassemble < %s 2>&1 | FileCheck %s
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Undefined encoding space for hint instructions
|
|
#------------------------------------------------------------------------------
|
|
|
|
0x05 0xf0 0x20 0xe3
|
|
# CHECK: invalid instruction encoding
|
|
0x41 0xf0 0x20 0xe3
|
|
# CHECK: invalid instruction encoding
|
|
0xfe 0xf0 0x20 0xe3
|
|
# CHECK: invalid instruction encoding
|
|
|