mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
94df8b11bc
Add checkDecodedInstruction for post-decode checking of instructions, to catch the corner cases like HVC that don't fit into the general pattern. Needed to check for an invalid condition field in instruction encoding despite HVC not taking a predicate. Patch by Matthew Wahab. Change-Id: I48e28de981d7a9e43569594da3c45fb478b4f795 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222992 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
379 B
Plaintext
11 lines
379 B
Plaintext
# RUN: not llvm-mc -disassemble -triple armv7a -mcpu=cortex-a15 %s 2>&1 | FileCheck --check-prefix=CHECK-ARM %s
|
|
|
|
# HVC (ARM)
|
|
[0x7f,0xff,0x4f,0xf1]
|
|
# CHECK-ARM: warning: invalid instruction encoding
|
|
|
|
[0x70,0xff,0x4f,0x01]
|
|
[0x7f,0xff,0x4f,0xd1]
|
|
# CHECK-ARM: warning: potentially undefined instruction encoding
|
|
# CHECK-ARM: warning: potentially undefined instruction encoding
|