19 lines · plain
1; RUN: llc < %s -O0 -filetype=null -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling2; RUN: llc < %s -O0 -filetype=asm -asm-verbose=false -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s3 4target triple = "wasm32-unknown-unknown"5 6declare void @llvm.wasm.throw(i32, ptr)7declare void @g()8 9define i32 @test(ptr %p) {10 %n = alloca i3211 call void @llvm.wasm.throw(i32 0, ptr %p)12 call void @g()13 ret i32 014}15 16; CHECK-DAG: .globaltype17; CHECK-DAG: .tagtype18; CHECK-DAG: .functype19