blob: eb86075466289aa710f0daf94d9775261c45ffae [file] [log] [blame]
Heejin Ahne0f8b9b2018-11-18 11:58:47 +00001; 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
3
4target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
5target triple = "wasm32-unknown-unknown"
6
7declare void @llvm.wasm.throw(i32, i8*)
8declare void @g()
9
10define i32 @test(i8* %p) {
11 %n = alloca i32
12 call void @llvm.wasm.throw(i32 0, i8* %p)
13 call void @g()
14 ret i32 0
15}
16
17; CHECK-DAG: .globaltype
18; CHECK-DAG: .eventtype
19; CHECK-DAG: .functype