x64: fix CvtFloatToUintSeq: do not clobber src. (#4842)
This slipped through the regalloc2 operand code update in #4811: the CvtFloatToUintSeq pseudo-instruction actually clobbers its source. It was marked as a "mod" operand in the original and I mistakenly converted it to a "use" as I had not seen the actual clobber. The instruction now takes an extra temp and makes a copy of `src` in the appropriate place. Fixes #4840.
This commit is contained in:
16
tests/misc_testsuite/issue4840.wast
Normal file
16
tests/misc_testsuite/issue4840.wast
Normal file
@@ -0,0 +1,16 @@
|
||||
(module
|
||||
(func (export "f") (param f32 i32) (result f64)
|
||||
local.get 1
|
||||
f64.convert_i32_u
|
||||
i32.trunc_f64_u
|
||||
f64.convert_i32_s
|
||||
local.get 1
|
||||
f64.convert_i32_u
|
||||
global.set 0
|
||||
drop
|
||||
global.get 0
|
||||
)
|
||||
(global (;0;) (mut f64) f64.const 0)
|
||||
)
|
||||
|
||||
(assert_return (invoke "f" (f32.const 1.23) (i32.const -2147483648)) (f64.const 2147483648))
|
||||
Reference in New Issue
Block a user