mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
fix rdar://7947167 - llvm-mc doesn't match movsq
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103199 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a8b789a4b
commit
e1611f26e3
@ -309,16 +309,22 @@ def BSR64rm : RI<0xBD, MRMSrcMem, (outs GR64:$dst), (ins i64mem:$src),
|
|||||||
} // Defs = [EFLAGS]
|
} // Defs = [EFLAGS]
|
||||||
|
|
||||||
// Repeat string ops
|
// Repeat string ops
|
||||||
let Defs = [RCX,RDI,RSI], Uses = [RCX,RDI,RSI] in
|
let Defs = [RCX,RDI,RSI], Uses = [RCX,RDI,RSI], isCodeGenOnly = 1 in
|
||||||
def REP_MOVSQ : RI<0xA5, RawFrm, (outs), (ins), "{rep;movsq|rep movsq}",
|
def REP_MOVSQ : RI<0xA5, RawFrm, (outs), (ins), "{rep;movsq|rep movsq}",
|
||||||
[(X86rep_movs i64)]>, REP;
|
[(X86rep_movs i64)]>, REP;
|
||||||
let Defs = [RCX,RDI], Uses = [RAX,RCX,RDI] in
|
let Defs = [RCX,RDI], Uses = [RAX,RCX,RDI], isCodeGenOnly = 1 in
|
||||||
def REP_STOSQ : RI<0xAB, RawFrm, (outs), (ins), "{rep;stosq|rep stosq}",
|
def REP_STOSQ : RI<0xAB, RawFrm, (outs), (ins), "{rep;stosq|rep stosq}",
|
||||||
[(X86rep_stos i64)]>, REP;
|
[(X86rep_stos i64)]>, REP;
|
||||||
|
|
||||||
def SCAS64 : RI<0xAF, RawFrm, (outs), (ins), "scas{q}", []>;
|
let Defs = [EDI,ESI], Uses = [EDI,ESI,EFLAGS] in
|
||||||
|
def MOVSQ : RI<0xA5, RawFrm, (outs), (ins), "movsq", []>;
|
||||||
|
|
||||||
def CMPS64 : RI<0xA7, RawFrm, (outs), (ins), "cmps{q}", []>;
|
let Defs = [RCX,RDI], Uses = [RAX,RCX,RDI,EFLAGS] in
|
||||||
|
def STOSQ : RI<0xAB, RawFrm, (outs), (ins), "stosq", []>;
|
||||||
|
|
||||||
|
def SCAS64 : RI<0xAF, RawFrm, (outs), (ins), "scasq", []>;
|
||||||
|
|
||||||
|
def CMPS64 : RI<0xA7, RawFrm, (outs), (ins), "cmpsq", []>;
|
||||||
|
|
||||||
// Fast system-call instructions
|
// Fast system-call instructions
|
||||||
def SYSEXIT64 : RI<0x35, RawFrm,
|
def SYSEXIT64 : RI<0x35, RawFrm,
|
||||||
|
@ -52,3 +52,20 @@ testq %rax, %rbx
|
|||||||
// CHECK: cmpq %rbx, %r14
|
// CHECK: cmpq %rbx, %r14
|
||||||
// CHECK: encoding: [0x49,0x39,0xde]
|
// CHECK: encoding: [0x49,0x39,0xde]
|
||||||
cmpq %rbx, %r14
|
cmpq %rbx, %r14
|
||||||
|
|
||||||
|
// rdar://7947167
|
||||||
|
|
||||||
|
movsq
|
||||||
|
// CHECK: movsq
|
||||||
|
// CHECK: encoding: [0x48,0xa5]
|
||||||
|
|
||||||
|
movsl
|
||||||
|
// CHECK: movsl
|
||||||
|
// CHECK: encoding: [0xa5]
|
||||||
|
|
||||||
|
stosq
|
||||||
|
// CHECK: stosq
|
||||||
|
// CHECK: encoding: [0x48,0xab]
|
||||||
|
stosl
|
||||||
|
// CHECK: stosl
|
||||||
|
// CHECK: encoding: [0xab]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user