Heejin Ahn | e0f8b9b | 2018-11-18 11:58:47 +0000 | [diff] [blame] | 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 |
| 3 | |
| 4 | target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" |
| 5 | target triple = "wasm32-unknown-unknown" |
| 6 | |
| 7 | declare void @llvm.wasm.throw(i32, i8*) |
| 8 | declare void @g() |
| 9 | |
| 10 | define 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 |