1// RUN: llvm-mc %s -triple=aarch64-none-linux-gnu -filetype=asm -o - \ 2// RUN: | FileCheck %s --check-prefix=CHECK-ASM 3// RUN: llvm-mc %s -triple=aarch64-none-linux-gnu -filetype=obj -o %t 4// RUN: llvm-readobj -S --sd %t | FileCheck %s --check-prefix=CHECK-OBJ 5// RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=SYMS 6 7 .section .size.aarch64_size 8 9 .p2align 2 10 .global aarch64_size 11 .type aarch64_size,%function 12aarch64_size: 13 .hword half_word 14 .word full_word 15 .dword double_word 16 .xword also_double_word 17 18// CHECK-ASM: .p2align 2 19// CHECK-ASM: .globl aarch64_size 20// CHECK-ASM: .type aarch64_size,@function 21// CHECK-ASM: aarch64_size: 22// CHECK-ASM: .hword half_word 23// CHECK-ASM: .word full_word 24// CHECK-ASM: .xword double_word 25// CHECK-ASM: .xword also_double_word 26 27// CHECK-OBJ: Section { 28// CHECK-OBJ: Name: .size.aarch64_size 29// CHECK-OBJ: SectionData ( 30// CHECK-OBJ-NEXT: 0000: 00000000 00000000 00000000 00000000 |................| 31// CHECK-OBJ-NEXT: 0010: 00000000 0000 |......| 32// CHECK-OBJ-NEXT: ) 33 34// SYMS: Type Bind Vis Ndx Name 35// SYMS: NOTYPE LOCAL DEFAULT 3 $d.0 36// SYMS-NEXT: FUNC GLOBAL DEFAULT 3 aarch64_size 37// SYMS-NEXT: NOTYPE GLOBAL DEFAULT UND also_double_word 38// SYMS-NEXT: NOTYPE GLOBAL DEFAULT UND double_word 39// SYMS-NEXT: NOTYPE GLOBAL DEFAULT UND full_word 40// SYMS-NEXT: NOTYPE GLOBAL DEFAULT UND half_word 41