llvm-for-llvmta/test/MC/X86/AlignedBundling/bundle-subtarget-change-err...

17 lines
520 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
# RUN: not --crash llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro %s -o - 2>&1 | FileCheck %s
# RUN: not --crash llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro -mc-relax-all %s -o - 2>&1 | FileCheck %s
# Switching mode will change subtarget, which we can't do within a bundle
.text
.code64
.bundle_align_mode 4
foo:
pushq %rbp
.bundle_lock
addl %ebp, %eax
.code32
movb $0x0, (%si)
.bundle_unlock
CHECK: LLVM ERROR: A Bundle can only have one Subtarget.