-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PCC: x64: insertlane instructions read only scalar-sized values. #8207
Conversation
Mind adding more variants for loading floats, in addition to the variants for storing everything? (module
(memory 1)
(func (param v128 i32) (result v128)
local.get 0
local.get 1
f32.load
f32x4.replace_lane 0)
(func (param v128 i32) (result v128)
local.get 0
local.get 1
f64.load
f64x2.replace_lane 1)
(func (param v128 i32) (result v128)
local.get 0
local.get 1
f64.load
f64x2.replace_lane 0)
(func (param v128 i32)
local.get 1
local.get 0
f64x2.extract_lane 1
f64.store)
(func (param v128 i32)
local.get 1
local.get 0
f32x4.extract_lane 1
f32.store)
(func (param v128 i32)
local.get 1
local.get 0
i8x16.extract_lane_s 1
i32.store8)
(func (param v128 i32)
local.get 1
local.get 0
i16x8.extract_lane_s 1
i32.store16)
(func (param v128 i32)
local.get 1
local.get 0
i32x4.extract_lane 1
i32.store)
(func (param v128 i32)
local.get 1
local.get 0
i64x2.extract_lane 1
i64.store)
) |
Also I'd recommend running the test with/without AVX to confirm that that all works too |
583a0a3
to
6a66e1e
Compare
Sure, added additional cases, thanks! This surfaced another issue with the range-fact clamping on 128-bit values, now fixed. The test cases already had distinct AVX and non-AVX variants; added your new cases to both. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with Alex's suggestion
race |
Yep, I imagine you'll want to review the new changes just pushed, sorry! |
Also fix `clamp_range` on greater-than-64-bit values: no range fact is possible in this case (propagate `Option` a bit deeper to represent this). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67538.
6a66e1e
to
633d6e7
Compare
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67538.