summaryrefslogtreecommitdiff
path: root/test/lit/passes
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-04-19 16:56:42 -0700
committerGitHub <noreply@github.com>2023-04-19 16:56:42 -0700
commit1e2e89b26fa27f51c4ae85e59dd081e352bf8f7c (patch)
tree665f6442cc00bcf747761ba46fc6284dea29e8a7 /test/lit/passes
parent8e965ee29a12ce6d5ba2d2fc5d8a51b75b42ad73 (diff)
downloadbinaryen-1e2e89b26fa27f51c4ae85e59dd081e352bf8f7c.tar.gz
binaryen-1e2e89b26fa27f51c4ae85e59dd081e352bf8f7c.tar.bz2
binaryen-1e2e89b26fa27f51c4ae85e59dd081e352bf8f7c.zip
Disable sign extension in SignExtLowering.cpp (#5676)
* Disable sign extension in SignExtLowering.cpp The sign extension lowering pass would previously lower away the sign extension instructions, but it wouldn't disable the sign extension feature, so follow-on passes such as optimize-instructions could reintroduce sign extension instructions. Fix the pass to disable the sign extension feature to prevent sign extension instructions from being reintroduced later. * update pass description
Diffstat (limited to 'test/lit/passes')
-rw-r--r--test/lit/passes/signext-lowering-features.wast9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lit/passes/signext-lowering-features.wast b/test/lit/passes/signext-lowering-features.wast
new file mode 100644
index 000000000..fb0671584
--- /dev/null
+++ b/test/lit/passes/signext-lowering-features.wast
@@ -0,0 +1,9 @@
+;; RUN: wasm-opt %s --enable-sign-ext --print-features --print --signext-lowering --print-features | filecheck %s
+
+;; Check that the --signext-lowering pass disables the signext feature.
+
+;; CHECK: --enable-sign-ext
+;; CHECK: (module
+;; CHECK-NOT: --enable-sign-ext
+
+(module)