Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: test/MC/X86/AlignedBundling/pad-align-to-bundle-end.s

Issue 1133723005: Cherry-pick r234714: [MC] Write padding into fragments when -mc-relax-all flag is used (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/MC/X86/AlignedBundling/nesting.s ('k') | test/MC/X86/AlignedBundling/pad-bundle-groups.s » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « test/MC/X86/AlignedBundling/nesting.s ('k') | test/MC/X86/AlignedBundling/pad-bundle-groups.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698