summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/X86/AlignedBundling/bundle-subtarget-change-error.s
blob: 67ac55ed2f0345c51dbbb61ac0226977314f12b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro %s -o - 2>&1 | FileCheck %s
# RUN: not 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.
OpenPOWER on IntegriCloud