mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 14:25:18 +00:00
PR10370: Make sure we know how to relax push correctly on x86-64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135303 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
133b09953c
commit
5232cc675c
@ -194,6 +194,9 @@ static unsigned getRelaxedOpcodeArith(unsigned Op) {
|
||||
|
||||
// PUSH
|
||||
case X86::PUSHi8: return X86::PUSHi32;
|
||||
case X86::PUSHi16: return X86::PUSHi32;
|
||||
case X86::PUSH64i8: return X86::PUSH64i32;
|
||||
case X86::PUSH64i16: return X86::PUSH64i32;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -92,23 +92,23 @@ bar:
|
||||
// CHECK: # Relocation 0x0000000b
|
||||
// CHECK-NEXT: (('r_offset', 0x0000004e)
|
||||
// CHECK-NEXT: ('r_sym', 0x00000002)
|
||||
// CHECK-NEXT: ('r_type', 0x0000000e)
|
||||
// CHECK-NEXT: ('r_type', 0x0000000b)
|
||||
// CHECK-NEXT: ('r_addend', 0x00000000)
|
||||
|
||||
// CHECK: # Relocation 0x0000000c
|
||||
// CHECK-NEXT: (('r_offset', 0x00000052)
|
||||
// CHECK-NEXT: (('r_offset', 0x00000055)
|
||||
// CHECK-NEXT: ('r_sym', 0x00000006)
|
||||
// CHECK-NEXT: ('r_type', 0x00000002)
|
||||
// CHECK-NEXT: ('r_addend', 0xfffffffc)
|
||||
|
||||
// CHECK: # Relocation 0x0000000d
|
||||
// CHECK-NEXT: (('r_offset', 0x00000059)
|
||||
// CHECK-NEXT: (('r_offset', 0x0000005c)
|
||||
// CHECK-NEXT: ('r_sym', 0x00000006)
|
||||
// CHECK-NEXT: ('r_type', 0x00000002)
|
||||
// CHECK-NEXT: ('r_addend', 0x00000059)
|
||||
// CHECK-NEXT: ('r_addend', 0x0000005c)
|
||||
|
||||
// CHECK: # Relocation 0x0000000e
|
||||
// CHECK-NEXT: (('r_offset', 0x00000060)
|
||||
// CHECK-NEXT: (('r_offset', 0x00000063)
|
||||
// CHECK-NEXT: ('r_sym', 0x00000002)
|
||||
// CHECK-NEXT: ('r_type', 0x0000000b)
|
||||
// CHECK-NEXT: ('r_addend', 0x00000000)
|
||||
|
Loading…
x
Reference in New Issue
Block a user