mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
implement PR9264: disambiguating 'bt mem, imm' as a btl.
This is reasonable to do since all bt-mem forms do the same thing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80e8b506b8
commit
824a9076ea
@ -1403,6 +1403,9 @@ defm : IntegerCondCodeMnemonicAlias<"cmov", "q">;
|
||||
def : InstAlias<"aad", (AAD8i8 10)>;
|
||||
def : InstAlias<"aam", (AAM8i8 10)>;
|
||||
|
||||
// Disambiguate the mem/imm form of bt-without-a-suffix as btl.
|
||||
def : InstAlias<"bt $imm, $mem", (BT32mi8 i32mem:$mem, i32i8imm:$imm)>;
|
||||
|
||||
// clr aliases.
|
||||
def : InstAlias<"clrb $reg", (XOR8rr GR8 :$reg, GR8 :$reg)>;
|
||||
def : InstAlias<"clrw $reg", (XOR16rr GR16:$reg, GR16:$reg)>;
|
||||
|
@ -648,6 +648,10 @@ movl 0, %eax // CHECK: movl 0, %eax # encoding: [0x8b,0x04,0x25,0x00,0x00,0x00
|
||||
// CHECK: encoding: [0x75,A]
|
||||
jnz 0
|
||||
|
||||
// PR9264
|
||||
btl $1, 0 // CHECK: btl $1, 0 # encoding: [0x0f,0xba,0x24,0x25,0x00,0x00,0x00,0x00,0x01]
|
||||
bt $1, 0 // CHECK: btl $1, 0 # encoding: [0x0f,0xba,0x24,0x25,0x00,0x00,0x00,0x00,0x01]
|
||||
|
||||
// rdar://8017515
|
||||
btq $0x01,%rdx
|
||||
// CHECK: btq $1, %rdx
|
||||
|
Loading…
Reference in New Issue
Block a user