diff options
Diffstat (limited to 'test/passes/optimize-instructions_fuzz-exec.txt')
-rw-r--r-- | test/passes/optimize-instructions_fuzz-exec.txt | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/test/passes/optimize-instructions_fuzz-exec.txt b/test/passes/optimize-instructions_fuzz-exec.txt index e8985222d..27d8795ed 100644 --- a/test/passes/optimize-instructions_fuzz-exec.txt +++ b/test/passes/optimize-instructions_fuzz-exec.txt @@ -257,19 +257,22 @@ [LoggingExternalInterface logging 1] [LoggingExternalInterface logging 1] [LoggingExternalInterface logging 0] +[fuzz-exec] calling do-shift +[LoggingExternalInterface logging -64] [fuzz-exec] calling call-compare-maybe-signed-eq [fuzz-exec] note result: call-compare-maybe-signed-eq => 0 [fuzz-exec] calling call-compare-maybe-signed-ne [fuzz-exec] note result: call-compare-maybe-signed-ne => 1 (module (type $i32_=>_none (func (param i32))) + (type $none_=>_none (func)) (type $none_=>_i32 (func (result i32))) (type $i32_=>_i32 (func (param i32) (result i32))) - (type $none_=>_none (func)) (import "fuzzing-support" "log-i32" (func $log (param i32))) (export "foo" (func $1)) - (export "call-compare-maybe-signed-eq" (func $3)) - (export "call-compare-maybe-signed-ne" (func $5)) + (export "do-shift" (func $3)) + (export "call-compare-maybe-signed-eq" (func $5)) + (export "call-compare-maybe-signed-ne" (func $7)) (func $signed-comparison-to-unsigned (call $log (block (result i32) @@ -321,13 +324,35 @@ ) ) ) + (func $shift (param $0 i32) + (call $log + (i32.shr_s + (i32.shl + (i32.shr_s + (i32.shl + (local.get $0) + (i32.const 24) + ) + (i32.const 24) + ) + (i32.const 30) + ) + (i32.const 24) + ) + ) + ) + (func $3 + (call $shift + (i32.const 65419) + ) + ) (func $compare-maybe-signed-eq (param $0 i32) (result i32) (drop (local.get $0) ) (i32.const 0) ) - (func $3 (result i32) + (func $5 (result i32) (call $compare-maybe-signed-eq (i32.const 128) ) @@ -338,7 +363,7 @@ ) (i32.const 1) ) - (func $5 (result i32) + (func $7 (result i32) (call $compare-maybe-signed-ne (i32.const 128) ) @@ -348,6 +373,8 @@ [LoggingExternalInterface logging 1] [LoggingExternalInterface logging 1] [LoggingExternalInterface logging 0] +[fuzz-exec] calling do-shift +[LoggingExternalInterface logging -64] [fuzz-exec] calling call-compare-maybe-signed-eq [fuzz-exec] note result: call-compare-maybe-signed-eq => 0 [fuzz-exec] calling call-compare-maybe-signed-ne |