diff options
author | Derek Schuff <dschuff@google.com> | 2013-02-15 22:50:52 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2013-02-15 22:50:52 +0000 |
commit | 8878bcc9e7b68158281f251fe664378603d4edb9 (patch) | |
tree | 0fd11e6fff685ee464289c39d520d82347078a35 /llvm/test | |
parent | 5a92eeca6b2b769f9ddab026f2db9806879cdf47 (diff) | |
download | bcm5719-llvm-8878bcc9e7b68158281f251fe664378603d4edb9.tar.gz bcm5719-llvm-8878bcc9e7b68158281f251fe664378603d4edb9.zip |
If bundle alignment is enabled, do not add data to a fragment with instructions
With bundle alignment, instructions all get their own MCFragments
(unless they are in a bundle-locked group). For instructions with
fixups, this is an MCDataFragment. Emitting actual data (e.g. for
.long) attempts to re-use MCDataFragments, which we don't want int
this case since it leads to fragments which exceed the bundle size.
So, don't reuse them in this case.
Also adds a test and fixes some formatting.
llvm-svn: 175316
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/ARM/AlignedBundling/group-bundle-arm.s | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/llvm/test/MC/ARM/AlignedBundling/group-bundle-arm.s b/llvm/test/MC/ARM/AlignedBundling/group-bundle-arm.s index 823d9e0cb8e..1d673532000 100644 --- a/llvm/test/MC/ARM/AlignedBundling/group-bundle-arm.s +++ b/llvm/test/MC/ARM/AlignedBundling/group-bundle-arm.s @@ -5,8 +5,8 @@ # instructions should not be inserted. However, for bundle-locked groups # it can be. - .syntax unified - .text + .syntax unified + .text .bundle_align_mode 4 bx lr @@ -35,3 +35,14 @@ # CHECK-NEXT: 2c: nop # CHECK-NEXT: 30: bx + .align 4 +foo: + b foo + .long 3892240112 + .long 3892240112 + .long 3892240112 + .long 3892240112 + .long 3892240112 + .long 3892240112 +# CHECK: 40: b + |