[AMDGPU] Add commute for some VOP3 inst (#121326)
[llvm-project.git] / llvm / test / MC / AArch64 / cfi-bad-nesting-darwin.s
blob3a5af86defc59279e545337ce6a691c08f928511
1 ; RUN: not llvm-mc -triple arm64-apple-darwin %s -filetype=obj -o /dev/null 2>&1 | FileCheck %s --check-prefix=DARWIN
3 ; REQUIRES: aarch64-registered-target
5 .section __TEXT,locomotive,regular,pure_instructions
7 .globl _locomotive
8 .p2align 2
9 _locomotive:
10 .cfi_startproc
11 ; An N_ALT_ENTRY symbol can be defined in the middle of a subsection, so
12 ; these are opted out of the .cfi_{start,end}proc nesting check.
13 .alt_entry _engineer
14 _engineer:
15 ret
17 ; It is invalid to have a non-private label between .cfi_startproc and
18 ; .cfi_endproc on MachO platforms.
19 .section __TEXT,__text,regular,pure_instructions
20 .globl _caboose
21 .p2align 2
22 _caboose:
23 ; DARWIN: [[#@LINE-1]]:1: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
24 ; DARWIN: [[#@LINE-14]]:2: error: previous .cfi_startproc was here
25 ret
26 .cfi_endproc
28 .subsections_via_symbols