1// RUN: llvm-mc -triple aarch64-elf -filetype asm %s | FileCheck %s --check-prefix=ASM 2// RUN: llvm-mc -triple aarch64-elf -filetype obj %s \ 3// RUN: | llvm-readelf -s - | FileCheck %s --check-prefix=OBJ 4 5// ASM: .variant_pcs local 6// ASM-NEXT: local: 7.text 8.variant_pcs local 9local: 10 11/// Binding directive before .variant_pcs. 12// ASM: .globl def1 13// ASM-NEXT: .variant_pcs def1 14// ASM-NEXT: def1: 15.global def1 16.variant_pcs def1 17def1: 18 19/// .variant_pcs before binding directive. 20// ASM: .variant_pcs def2 21// ASM-NEXT: .weak def2 22// ASM-NEXT: def2: 23.variant_pcs def2 24.weak def2 25def2: 26 27.globl alias_def1 28.set alias_def1, def1 29 30// ASM: .variant_pcs undef 31.variant_pcs undef 32 33// OBJ: NOTYPE LOCAL DEFAULT [VARIANT_PCS] [[#]] local 34// OBJ-NEXT: NOTYPE GLOBAL DEFAULT [VARIANT_PCS] [[#]] def1 35// OBJ-NEXT: NOTYPE WEAK DEFAULT [VARIANT_PCS] [[#]] def2 36// OBJ-NEXT: NOTYPE GLOBAL DEFAULT [[#]] alias_def1 37// OBJ-NEXT: NOTYPE GLOBAL DEFAULT [VARIANT_PCS] UND undef 38