Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ARM / AlignedBundling / subtarget-change.s
blob5672560376d46531ec45c565cfbd95f00f32be35
1 # RUN: llvm-mc -filetype=obj -triple armv7-linux-gnueabi %s -o - \
2 # RUN: | llvm-objdump --no-print-imm-hex --no-show-raw-insn --triple=armv7 -d - | FileCheck %s
4 # We can switch subtargets with .arch outside of a bundle
5 .syntax unified
6 .text
7 .bundle_align_mode 4
8 .arch armv4t
9 bx lr
10 .bundle_lock
11 and r1, r1, r1
12 and r1, r1, r1
13 .bundle_unlock
14 bx lr
16 # We can switch subtargets at the start of a bundle
17 bx lr
18 .bundle_lock align_to_end
19 .arch armv7a
20 movt r0, #0xffff
21 movw r0, #0xffff
22 .bundle_unlock
23 bx lr
25 # CHECK: 0: bx lr
26 # CHECK-NEXT: 4: and r1, r1, r1
27 # CHECK-NEXT: 8: and r1, r1, r1
28 # CHECK-NEXT: c: bx lr
29 # CHECK-NEXT: 10: bx lr
30 # CHECK-NEXT: 14: nop
31 # CHECK-NEXT: 18: movt r0, #65535
32 # CHECK-NEXT: 1c: movw r0, #65535
33 # CHECK-NEXT: 20: bx lr