File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
FuzzTesting/FailCases/FuzzDifferential
Sources/WasmKit/Execution Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ extension RawUnsignedInteger {
130130 return self << shift
131131 }
132132 func shrS( _ other: Self ) -> Self {
133- let shift = other. signed % Self. Signed ( Self . bitWidth)
134- return ( self . signed >> shift. unsigned ) . unsigned
133+ let shift = other % Self( Self . bitWidth)
134+ return ( self . signed >> shift) . unsigned
135135 }
136136 func shrU( _ other: Self ) -> Self {
137137 let shift = other % Self( Self . bitWidth)
Original file line number Diff line number Diff line change 1+ (module
2+ (func (export " i64.shr_s" ) (param i64 ) (param i64 ) (result i64 )
3+ (i64.shr_s (local.get 0 ) (local.get 1 ))
4+ )
5+ )
6+
7+ (assert_return (invoke " i64.shr_s" (i64.const -1309934030728401938 ) (i64.const -1309934030728401938 )) (i64.const -18616 ))
8+
You can’t perform that action at this time.
0 commit comments