mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-16 01:17:51 +00:00
1cacc098fe
But now it follows the llvm style, uses an early return and doesn't include a file named 1.o. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260293 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
957 B
ArmAsm
29 lines
957 B
ArmAsm
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
|
|
// RUN: llvm-size -A %t.o | FileCheck --check-prefix="SYSV" %s
|
|
// RUN: llvm-size -B %t.o| FileCheck --check-prefix="BSD" %s
|
|
|
|
.text
|
|
.zero 4
|
|
.data
|
|
.long foo
|
|
.bss
|
|
.zero 4
|
|
.ident "foo"
|
|
.section foo
|
|
.long 42
|
|
.cfi_startproc
|
|
.cfi_endproc
|
|
|
|
// SYSV: {{[ -\(\)_A-Za-z0-9.\\/:]+}} :
|
|
// SYSV-NEXT: section size addr
|
|
// SYSV-NEXT: .text 4 0
|
|
// SYSV-NEXT: .data 4 0
|
|
// SYSV-NEXT: .bss 4 0
|
|
// SYSV-NEXT: .comment 5 0
|
|
// SYSV-NEXT: foo 4 0
|
|
// SYSV-NEXT: .eh_frame 48 0
|
|
// SYSV-NEXT: Total 69
|
|
|
|
// BSD: text data bss dec hex filename
|
|
// BSD-NEXT: 4 4 4 12 c {{[ -\(\)_A-Za-z0-9.\\/:]+}}
|