mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
a39ea3408e
The UDF instruction is a reserved undefined instruction space. The assembler mnemonic was introduced with ARM ARM rev C.a. The instruction is not predicated and the immediate constant is ignored by the CPU. Add support for the three encodings for this instruction. The changes to the invalid instruction test is due to the fact that the invalid instructions actually overlap with the undefined instruction. Introduction of the new instruction results in a partial decode as an undefined sequence. Drop the tests as they are invalid instruction patterns anyways. llvm-svn: 208751
14 lines
283 B
ArmAsm
14 lines
283 B
ArmAsm
@ RUN: llvm-mc -triple thumbv7-eabi -mattr +thumb2 -show-encoding %s | FileCheck %s
|
|
|
|
.syntax unified
|
|
.text
|
|
.thumb
|
|
|
|
undefined:
|
|
udf #0
|
|
udf.w #0
|
|
|
|
@ CHECK: udf #0 @ encoding: [0x00,0xde]
|
|
@ CHECK: udf.w #0 @ encoding: [0xf0,0xf7,0x00,0xa0]
|
|
|