llvm-for-llvmta/test/MC/ARM/AlignedBundling/illegal-subtarget-change.s

17 lines
451 B
ArmAsm
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# RUN: not --crash llvm-mc -filetype=obj -triple armv7-linux-gnueabi %s -o - 2>&1 | FileCheck %s
# We cannot switch subtargets mid-bundle
.syntax unified
.text
.bundle_align_mode 4
.arch armv4t
bx lr
.bundle_lock
bx lr
.arch armv7a
movt r0, #0xffff
movw r0, #0xffff
.bundle_unlock
bx lr
# CHECK: LLVM ERROR: A Bundle can only have one Subtarget.