[llvm] [WebAssembly] Fold unsigned offset (PR #145829)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 11:11:16 PDT 2025


================
@@ -34,7 +34,7 @@ define void @throw(ptr %p) {
 ; CHECK:       call      foo
 ; CHECK:     catch     $[[EXN:[0-9]+]]=, __cpp_exception
 ; CHECK:       global.set  __stack_pointer
-; CHECK:       i32.{{store|const}} {{.*}} __wasm_lpad_context
+; CHECK:       i32.{{store|const}} {{.*}} 4
----------------
lukel97 wrote:

__wasm_lpad_context should still be somewhere in this code right? i think it's important we test for it, can we add another CHECK line for it or just replace this CHECK line with it

https://github.com/llvm/llvm-project/pull/145829


More information about the llvm-commits mailing list