1 ; RUN: llc < %s -O0 -filetype=null -exception-model=wasm -mattr=+exception-handling
2 ; RUN: llc < %s -O0 -filetype=asm -asm-verbose=false -exception-model=wasm -mattr=+exception-handling | FileCheck %s
4 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
5 target triple = "wasm32-unknown-unknown"
7 declare void @llvm.wasm.throw(i32, i8*)
10 define i32 @test(i8* %p) {
12 call void @llvm.wasm.throw(i32 0, i8* %p)
17 ; CHECK-DAG: .globaltype
18 ; CHECK-DAG: .eventtype
19 ; CHECK-DAG: .functype