summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/exception.ll
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-07-18 21:42:22 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-07-18 21:42:22 +0000
commit47068a42d24db55632bc72dadba0732b24a6ac50 (patch)
tree9d9f9cd63c1845d023b6b24e5bd98691c82604a4 /llvm/test/CodeGen/WebAssembly/exception.ll
parentda142d10d9b71ef6d278e6f45fd3692e7c66948d (diff)
downloadbcm5719-llvm-47068a42d24db55632bc72dadba0732b24a6ac50.tar.gz
bcm5719-llvm-47068a42d24db55632bc72dadba0732b24a6ac50.zip
[WebAssembly] Add missing -mattr=+exception-handling guards
Summary: The use of exception handling instructions should only be enabled with `-mattr=+exception-handling` option. Reviewers: jgravelle-google Subscribers: dschuff, sbc100, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D49391 llvm-svn: 337425
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/exception.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/exception.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/exception.ll b/llvm/test/CodeGen/WebAssembly/exception.ll
index aab054a3a84..bab8de24f73 100644
--- a/llvm/test/CodeGen/WebAssembly/exception.ll
+++ b/llvm/test/CodeGen/WebAssembly/exception.ll
@@ -1,4 +1,5 @@
-; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -exception-model=wasm | FileCheck -allow-deprecated-dag-overlap %s
+; RUN: not llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -exception-model=wasm
+; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -exception-model=wasm -mattr=+exception-handling | FileCheck -allow-deprecated-dag-overlap %s
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"
OpenPOWER on IntegriCloud