mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
X86: Fix ADD64i32 encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5691e74f97
commit
859c9dc867
@ -464,8 +464,8 @@ let neverHasSideEffects = 1 in {
|
||||
|
||||
let Defs = [EFLAGS] in {
|
||||
|
||||
def ADD64i32 : RI<0x05, RawFrm, (outs), (ins i32imm:$src),
|
||||
"add{q}\t{$src, %rax|%rax, $src}", []>;
|
||||
def ADD64i32 : RIi32<0x05, RawFrm, (outs), (ins i32imm:$src),
|
||||
"add{q}\t{$src, %rax|%rax, $src}", []>;
|
||||
|
||||
let isTwoAddress = 1 in {
|
||||
let isConvertibleToThreeAddress = 1 in {
|
||||
|
@ -24,3 +24,6 @@ movq $12, foo(%rip)
|
||||
// CHECK: movq $12, foo(%rip)
|
||||
// CHECK: encoding: [0x48,0xc7,0x05,A,A,A,A,0x0c,0x00,0x00,0x00]
|
||||
// CHECK: fixup A - offset: 3, value: foo-8, kind: reloc_riprel_4byte
|
||||
|
||||
// CHECK: addq $-424, %rax # encoding: [0x48,0x05,0x58,0xfe,0xff,0xff]
|
||||
addq $-424, %rax
|
||||
|
Loading…
x
Reference in New Issue
Block a user