| 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 - | FileCheck %s | 2 # RUN: | llvm-objdump -disassemble - | FileCheck %s |
| 3 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mc-relax-all %s -o - \ |
| 4 # RUN: | llvm-objdump -disassemble - | FileCheck %s |
| 3 | 5 |
| 4 # Test that instructions inside bundle-locked groups are relaxed even if their | 6 # Test that instructions inside bundle-locked groups are relaxed even if their |
| 5 # fixup is short enough not to warrant relaxation on its own. | 7 # fixup is short enough not to warrant relaxation on its own. |
| 6 | 8 |
| 7 .text | 9 .text |
| 8 foo: | 10 foo: |
| 9 .bundle_align_mode 4 | 11 .bundle_align_mode 4 |
| 10 pushq %rbp | 12 pushq %rbp |
| 11 | 13 |
| 12 movl %edi, %ebx | 14 movl %edi, %ebx |
| (...skipping 20 matching lines...) Expand all Loading... |
| 33 # CHECK: 28: e9 | 35 # CHECK: 28: e9 |
| 34 | 36 |
| 35 .bundle_unlock | 37 .bundle_unlock |
| 36 | 38 |
| 37 .L_ELSE: | 39 .L_ELSE: |
| 38 imull %ebx, %eax | 40 imull %ebx, %eax |
| 39 .L_RET: | 41 .L_RET: |
| 40 | 42 |
| 41 popq %rbx | 43 popq %rbx |
| 42 | 44 |
| OLD | NEW |