diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2015-12-14 23:12:40 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2015-12-14 23:12:40 +0000 |
| commit | 2cb8a51c1f771437a0207c4c71e2d6273a4a3550 (patch) | |
| tree | 2523b6b12466132a22df21c988c3f4321709c36f /llvm/test | |
| parent | 6a5def90d9a0416efc15f8c0fcd15b24e269e7ff (diff) | |
| download | bcm5719-llvm-2cb8a51c1f771437a0207c4c71e2d6273a4a3550.tar.gz bcm5719-llvm-2cb8a51c1f771437a0207c4c71e2d6273a4a3550.zip | |
[X86] Add relaxtion logic for ADC instructions.
Prior to this patch, we would wrongly stick to the variant with imm8 encoding
even when the relocation could not fit that size.
rdar://problem/23785506
llvm-svn: 255570
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/ELF/relax-arith.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/relax-arith.s b/llvm/test/MC/ELF/relax-arith.s index 15e44ebff7e..0e0d0a52d79 100644 --- a/llvm/test/MC/ELF/relax-arith.s +++ b/llvm/test/MC/ELF/relax-arith.s @@ -123,3 +123,19 @@ bar: .section push,"x" pushw $foo push $foo + +// CHECK: Disassembly of section adc: +// CHECK-NEXT: adc: +// CHECK-NEXT: 0: 66 81 d3 00 00 adcw $0, %bx +// CHECK-NEXT: 5: 66 81 14 25 00 00 00 00 00 00 adcw $0, 0 +// CHECK-NEXT: f: 81 d3 00 00 00 00 adcl $0, %ebx +// CHECK-NEXT: 15: 81 14 25 00 00 00 00 00 00 00 00 adcl $0, 0 +// CHECK-NEXT: 20: 48 81 d3 00 00 00 00 adcq $0, %rbx +// CHECK-NEXT: 27: 48 81 14 25 00 00 00 00 00 00 00 00 adcq $0, 0 + .section adc,"x" + adc $foo, %bx + adcw $foo, bar + adc $foo, %ebx + adcl $foo, bar + adc $foo, %rbx + adcq $foo, bar |

