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

Side by Side Diff: test/MC/X86/AlignedBundling/nesting.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
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 # Will be bundle-aligning to 16 byte boundaries 6 # Will be bundle-aligning to 16 byte boundaries
5 .bundle_align_mode 4 7 .bundle_align_mode 4
6 .text 8 .text
7 # CHECK-LABEL: foo 9 # CHECK-LABEL: foo
8 foo: 10 foo:
9 # Test that bundle alignment mode can be set more than once. 11 # Test that bundle alignment mode can be set more than once.
10 .bundle_align_mode 4 12 .bundle_align_mode 4
11 # Each of these callq instructions is 5 bytes long 13 # Each of these callq instructions is 5 bytes long
12 callq bar 14 callq bar
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 .bundle_lock 60 .bundle_lock
59 .bundle_lock 61 .bundle_lock
60 callq bar 62 callq bar
61 .bundle_unlock 63 .bundle_unlock
62 callq bar 64 callq bar
63 .bundle_unlock 65 .bundle_unlock
64 # Check that the calls are bundled together when the second one is after the 66 # Check that the calls are bundled together when the second one is after the
65 # inner nest is closed. 67 # inner nest is closed.
66 # CHECK: 70: callq 68 # CHECK: 70: callq
67 # CHECK-NEXT: 75: callq 69 # CHECK-NEXT: 75: callq
OLDNEW
« no previous file with comments | « test/MC/X86/AlignedBundling/long-nop-pad.s ('k') | test/MC/X86/AlignedBundling/pad-align-to-bundle-end.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698