Debian Codegraph @

llvm/test/MC/X86/AlignedBundling/bundle-subtarget-change-error.s

raw
1 # RUN: not --crash llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro %s -o - 2>&1 | FileCheck %s
2 # RUN: not --crash llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro -mc-relax-all %s -o - 2>&1 | FileCheck %s
3
4 # Switching mode will change subtarget, which we can't do within a bundle
5 .text
6 .code64
7 .bundle_align_mode 4
8 foo:
9 pushq %rbp
10 .bundle_lock
11 addl %ebp, %eax
12 .code32
13 movb $0x0, (%si)
14 .bundle_unlock
15
16 CHECK: LLVM ERROR: A Bundle can only have one Subtarget.