[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / llvm / test / MC / WebAssembly / func-attr.s
blobe99096b30db4d715ff4fc8616fa5ab533db4a1aa
1 # RUN: llvm-mc -triple=wasm32-unknown-unknown < %s | FileCheck %s
2 # Check that it also comiled to object for format.
3 # RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj -o - < %s | obj2yaml | FileCheck -check-prefix=CHECK-OBJ %s
5 foo:
6 .globl foo
7 .functype foo () -> ()
8 end_function
10 .section .custom_section.llvm.func_attr.custom0,"",@
11 .int32 foo@FUNCINDEX
13 # CHECK: .section .custom_section.llvm.func_attr.custom0,"",@
14 # CHECK-NEXT: .int32 foo@FUNCINDEX
16 # CHECK-OBJ: - Type: CUSTOM
17 # CHECK-OBJ-NEXT: Relocations:
18 # CHECK-OBJ-NEXT: - Type: R_WASM_FUNCTION_INDEX_I32
19 # CHECK-OBJ-NEXT: Index: 0
20 # CHECK-OBJ-NEXT: Offset: 0x0
21 # CHECK-OBJ-NEXT: Name: llvm.func_attr.custom0