mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
ad997feb52
Now that our `.s` format is stable(ish) and useable we should really convert all our MC and lld tests over to .s format to match other targets. This is a test PR that just converts 2 of our MC tests to see what it might look like. Differential Revision: https://reviews.llvm.org/D71506
25 lines
812 B
ArmAsm
25 lines
812 B
ArmAsm
# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj -o %t.o < %s
|
|
# RUN: obj2yaml %t.o | FileCheck %s
|
|
|
|
weak_function:
|
|
.functype weak_function () -> (i32)
|
|
.hidden weak_function
|
|
.weak weak_function
|
|
i32.const 0
|
|
i32.load weak_external_data
|
|
end_function
|
|
|
|
.weak weak_external_data
|
|
|
|
# CHECK: SymbolTable:
|
|
# CHECK-NEXT: - Index: 0
|
|
# CHECK-NEXT: Kind: FUNCTION
|
|
# CHECK-NEXT: Name: weak_function
|
|
# CHECK-NEXT: Flags: [ BINDING_WEAK, VISIBILITY_HIDDEN ]
|
|
# CHECK-NEXT: Function: 0
|
|
# CHECK-NEXT: - Index: 1
|
|
# CHECK-NEXT: Kind: DATA
|
|
# CHECK-NEXT: Name: weak_external_data
|
|
# CHECK-NEXT: Flags: [ BINDING_WEAK, UNDEFINED ]
|
|
# CHECK-NEXT: ...
|