mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 01:29:52 +00:00
PR10370: Make sure we know how to relax push correctly on x86-64.
llvm-svn: 135303
This commit is contained in:
parent
b7cc06366d
commit
3846acc98e
@ -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…
Reference in New Issue
Block a user