diff options
author | Quentin Colombet <qcolombet@apple.com> | 2013-04-17 18:46:12 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2013-04-17 18:46:12 +0000 |
commit | 7c4cf030a898b5b4e0d2c66adf8dc068b1f1f070 (patch) | |
tree | 9490c14294fd0dc9bb8233941d8c9040cf397227 /test/MC | |
parent | 403569373f1e63cc96ea8274b18088bf7ff17bd6 (diff) | |
download | llvm-7c4cf030a898b5b4e0d2c66adf8dc068b1f1f070.tar.gz llvm-7c4cf030a898b5b4e0d2c66adf8dc068b1f1f070.tar.bz2 llvm-7c4cf030a898b5b4e0d2c66adf8dc068b1f1f070.tar.xz |
Fix treatment of ARM unallocated hint instructions.
The reference manual defines only 5 permitted values for the immediate field of the "hint" instruction:
1. nop (imm == 0)
2. yield (imm == 1)
3. wfe (imm == 2)
4. wfi (imm == 3)
5. sev (imm == 4)
Therefore, restrict the permitted values for the "hint" instruction to 0 through 4.
Patch by Mihail Popa <Mihail.Popa@arm.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ARM/basic-arm-instructions.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/MC/ARM/basic-arm-instructions.s b/test/MC/ARM/basic-arm-instructions.s index a5f4501680..0b7f2f9dbd 100644 --- a/test/MC/ARM/basic-arm-instructions.s +++ b/test/MC/ARM/basic-arm-instructions.s @@ -2883,7 +2883,7 @@ Lforward: @ CHECK: wfilt @ encoding: [0x03,0xf0,0x20,0xb3] @ CHECK: yield @ encoding: [0x01,0xf0,0x20,0xe3] @ CHECK: yieldne @ encoding: [0x01,0xf0,0x20,0x13] -@ CHECK: hint #5 @ encoding: [0x05,0xf0,0x20,0xe3] +@ CHECK-NOT: hint #5 @ CHECK: sev @ encoding: [0x04,0xf0,0x20,0xe3] @ CHECK: wfi @ encoding: [0x03,0xf0,0x20,0xe3] @ CHECK: wfe @ encoding: [0x02,0xf0,0x20,0xe3] |