aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2026-02-12 13:33:18 -0800
committerGitHub <noreply@github.com>2026-02-12 13:33:18 -0800
commitc1e90fa663ca46c70d079503b83340d5e38105a4 (patch)
treeed1a037707ab83f88af5d384c496706fe1ebe2df /llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll
parenta8be67e6f3da18b70961a72c56a3f802b4ab4da9 (diff)
downloadllvm-main.zip
llvm-main.tar.gz
llvm-main.tar.bz2
[WebAssembly] Error on Wasm SjLj if +exception-handling is missing (#181070)HEADmain
This checks every user function of `setjmp` or `longjmp` and if any of them does not have `+exception-handling` target feature, errors out. Hopefully this gives a clearer error message to the users in case they do not provide consistent SjLj flags at compile time vs. link time. Closes #178135 and closes https://github.com/emscripten-core/emscripten/issues/26165.
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll b/llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll
index e1cb859..a4819b2 100644
--- a/llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll
+++ b/llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll
@@ -1,6 +1,6 @@
-; RUN: opt < %s -wasm-lower-em-ehsjlj -wasm-enable-sjlj -S | FileCheck %s -DPTR=i32
-; RUN: opt < %s -wasm-lower-em-ehsjlj -wasm-enable-sjlj -S --mattr=+atomics,+bulk-memory | FileCheck %s -DPTR=i32
-; RUN: opt < %s -wasm-lower-em-ehsjlj -wasm-enable-sjlj --mtriple=wasm64-unknown-unknown -data-layout="e-m:e-p:64:64-i64:64-n32:64-S128" -S | FileCheck %s -DPTR=i64
+; RUN: opt < %s -wasm-lower-em-ehsjlj -wasm-enable-sjlj -mattr=+exception-handling -S | FileCheck %s -DPTR=i32
+; RUN: opt < %s -wasm-lower-em-ehsjlj -wasm-enable-sjlj -S --mattr=+atomics,+bulk-memory,+exception-handling | FileCheck %s -DPTR=i32
+; RUN: opt < %s -wasm-lower-em-ehsjlj -wasm-enable-sjlj -mattr=+exception-handling --mtriple=wasm64-unknown-unknown -data-layout="e-m:e-p:64:64-i64:64-n32:64-S128" -S | FileCheck %s -DPTR=i64
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"