1 ; RUN: llc < %s -asm-verbose=false -wasm-keep-registers | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 @.str = private unnamed_addr constant [8 x i8] c"custom0\00", section "llvm.metadata"
6 @.str.1 = private unnamed_addr constant [7 x i8] c"main.c\00", section "llvm.metadata"
7 @.str.2 = private unnamed_addr constant [8 x i8] c"custom1\00", section "llvm.metadata"
8 @.str.3 = private unnamed_addr constant [8 x i8] c"custom2\00", section "llvm.metadata"
9 @llvm.global.annotations = appending global [3 x { ptr, ptr, ptr, i32, ptr }] [{ ptr, ptr, ptr, i32, ptr } { ptr @test0, ptr @.str, ptr @.str.1, i32 4, ptr null }, { ptr, ptr, ptr, i32, ptr } { ptr @test1, ptr @.str, ptr @.str.1, i32 5, ptr null }, { ptr, ptr, ptr, i32, ptr } { ptr @test2, ptr @.str.2, ptr @.str.1, i32 6, ptr null }], section "llvm.metadata"
11 define void @test0() {
15 define void @test1() {
19 define void @test2() {
23 define void @test3() {
27 ; CHECK: .section .custom_section.llvm.func_attr.annotate.custom0,"",@
28 ; CHECK-NEXT: .int32 test0@FUNCINDEX
29 ; CHECK-NEXT: .int32 test1@FUNCINDEX
30 ; CHECK: .section .custom_section.llvm.func_attr.annotate.custom1,"",@
31 ; CHECK-NEXT: .int32 test2@FUNCINDEX