fix the encoding and add testcases for ARM nop, yield, wfe and wfi instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bruno Cardoso Lopes 2011-01-26 13:28:14 +00:00
parent 37f87c7aa9
commit 1b10d5be40
4 changed files with 37 additions and 0 deletions

View File

@ -3157,6 +3157,7 @@ class T2I_hint<bits<8> op7_0, string opc, string asm>
: T2I<(outs), (ins), NoItinerary, opc, asm,
[/* For disassembly only; pattern left blank */]> {
let Inst{31-20} = 0xf3a;
let Inst{19-16} = 0b1111;
let Inst{15-14} = 0b10;
let Inst{12} = 0;
let Inst{10-8} = 0b000;

View File

@ -176,3 +176,15 @@
@ CHECK: qdsub r1, r2, r3 @ encoding: [0x52,0x10,0x63,0xe1]
qdsub r1, r2, r3
@ CHECK: wfe @ encoding: [0x02,0xf0,0x20,0xe3]
wfe
@ CHECK: wfi @ encoding: [0x03,0xf0,0x20,0xe3]
wfi
@ CHECK: yield @ encoding: [0x01,0xf0,0x20,0xe3]
yield
@ CHECK: nop @ encoding: [0x00,0xf0,0x20,0xe3]
nop

View File

@ -54,3 +54,14 @@
@ CHECK: cdp p7, #1, c1, c1, c1, #4 @ encoding: [0x11,0xee,0x81,0x17]
cdp p7, #1, c1, c1, c1, #4
@ CHECK: nop @ encoding: [0x00,0xbf]
nop
@ CHECK: yield @ encoding: [0x10,0xbf]
yield
@ CHECK: wfe @ encoding: [0x20,0xbf]
wfe
@ CHECK: wfi @ encoding: [0x30,0xbf]
wfi

View File

@ -214,3 +214,16 @@
@ CHECK: qdsub r1, r2, r3 @ encoding: [0x83,0xfa,0xb2,0xf1]
qdsub r1, r2, r3
@ CHECK: nop.w @ encoding: [0xaf,0xf3,0x00,0x80]
nop.w
@ CHECK: yield.w @ encoding: [0xaf,0xf3,0x01,0x80]
yield.w
@ CHECK: wfe.w @ encoding: [0xaf,0xf3,0x02,0x80]
wfe.w
@ CHECK: wfi.w @ encoding: [0xaf,0xf3,0x03,0x80]
wfi.w