OLD | NEW |
1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \ | 1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \ |
2 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s | 2 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s |
| 3 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mc-relax-all %s -o - \ |
| 4 # RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s |
3 | 5 |
4 # Test some variations of padding to the end of a bundle. | 6 # Test some variations of padding to the end of a bundle. |
5 | 7 |
6 .text | 8 .text |
7 foo: | 9 foo: |
8 .bundle_align_mode 4 | 10 .bundle_align_mode 4 |
9 | 11 |
10 # Each of these callq instructions is 5 bytes long | 12 # Each of these callq instructions is 5 bytes long |
11 callq bar | 13 callq bar |
12 callq bar | 14 callq bar |
(...skipping 11 matching lines...) Expand all Loading... |
24 callq bar | 26 callq bar |
25 .bundle_unlock | 27 .bundle_unlock |
26 # Here we have to pad until the end of the *next* boundary because | 28 # Here we have to pad until the end of the *next* boundary because |
27 # otherwise the group crosses a boundary. | 29 # otherwise the group crosses a boundary. |
28 # CHECK: 1a: nop | 30 # CHECK: 1a: nop |
29 # The nop sequence may be implemented as one instruction or many, but if | 31 # The nop sequence may be implemented as one instruction or many, but if |
30 # it's one instruction, that instruction cannot itself cross the boundary. | 32 # it's one instruction, that instruction cannot itself cross the boundary. |
31 # CHECK: 20: nop | 33 # CHECK: 20: nop |
32 # CHECK-NEXT: 26: callq | 34 # CHECK-NEXT: 26: callq |
33 # CHECK-NEXT: 2b: callq | 35 # CHECK-NEXT: 2b: callq |
OLD | NEW |