summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-12-11 01:11:04 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-12-11 01:11:04 +0000
commitbe5e5874f612adf6c64d06263776ec72349d3f4d (patch)
treef22ed0390ab4c12b5d71a64b7572fda198cc8543 /llvm/test
parent6d6ff2e0d720b2b50c7a7566363d45b7706a6433 (diff)
downloadbcm5719-llvm-be5e5874f612adf6c64d06263776ec72349d3f4d.tar.gz
bcm5719-llvm-be5e5874f612adf6c64d06263776ec72349d3f4d.zip
[WebAssembly] Add '.eventtype' directive support
Summary: This patch supports `.eventtype` directive printing and parsing in the same syntax with `.functype`. Reviewers: aardappel, sbc100 Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D55353 llvm-svn: 348818
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/WebAssembly/exception.ll2
-rw-r--r--llvm/test/MC/WebAssembly/basic-assembly.s2
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/exception.ll b/llvm/test/CodeGen/WebAssembly/exception.ll
index b53cd0cb544..b0365fc9d43 100644
--- a/llvm/test/CodeGen/WebAssembly/exception.ll
+++ b/llvm/test/CodeGen/WebAssembly/exception.ll
@@ -262,4 +262,4 @@ declare void @_ZSt9terminatev()
declare %struct.Cleanup* @_ZN7CleanupD1Ev(%struct.Cleanup* returned)
; CHECK: __cpp_exception:
-; CHECK: .eventtype __cpp_exception, void, i32
+; CHECK: .eventtype __cpp_exception i32
diff --git a/llvm/test/MC/WebAssembly/basic-assembly.s b/llvm/test/MC/WebAssembly/basic-assembly.s
index e51e2bc9aab..408d02d1337 100644
--- a/llvm/test/MC/WebAssembly/basic-assembly.s
+++ b/llvm/test/MC/WebAssembly/basic-assembly.s
@@ -8,6 +8,7 @@
test0:
# Test all types:
.functype test0 (i32, i64) -> (i32)
+ .eventtype __cpp_exception i32
.local f32, f64, v128, v128
# Explicit getlocal/setlocal:
get_local 2
@@ -66,6 +67,7 @@ test0:
# CHECK: .text
# CHECK-LABEL: test0:
# CHECK-NEXT: .functype test0 (i32, i64) -> (i32)
+# CHECK-NEXT: .eventtype __cpp_exception i32
# CHECK-NEXT: .local f32, f64
# CHECK-NEXT: get_local 2
# CHECK-NEXT: set_local 2
OpenPOWER on IntegriCloud