mirror of
https://github.com/ivall/xcl.git
synced 2026-11-24 05:14:57 +01:00
Recompiler: #119's clamped 8-bit dots through dot4_u8 / dot4_i8 again
DXC hit an internal compiler error on (int64_t)dot4add_i8packed(a, b, 0) (the merge of #119 with the SM 6.4 intrinsics); the clamp forms go back to #119's helpers, the plain forms keep the intrinsics.
This commit is contained in:
@@ -2622,8 +2622,8 @@ impl Em {
|
||||
h(1, true),
|
||||
src(2)
|
||||
)),
|
||||
"v_dot4_u32_u8" if clamp => Some(format!("sat_u32((uint64_t)dot4add_u8packed({}, {}, 0u) + (uint64_t){})", src(0), src(1), src(2))),
|
||||
"v_dot4_i32_i8" if clamp => Some(format!("sat_i32((int64_t)dot4add_i8packed({}, {}, 0) + (int64_t)(int){})", src(0), src(1), src(2))),
|
||||
"v_dot4_u32_u8" if clamp => Some(format!("sat_u32((uint64_t)dot4_u8({}, {}, 0u) + (uint64_t){})", src(0), src(1), src(2))),
|
||||
"v_dot4_i32_i8" if clamp => Some(format!("sat_i32((int64_t)(int)dot4_i8({}, {}, 0u) + (int64_t)(int){})", src(0), src(1), src(2))),
|
||||
"v_dot8_u32_u4" if clamp => Some(format!("sat_u32((uint64_t)dot8_u4({}, {}, 0u) + (uint64_t){})", src(0), src(1), src(2))),
|
||||
"v_dot8_i32_i4" if clamp => Some(format!("sat_i32((int64_t)(int)dot8_i4({}, {}, 0u) + (int64_t)(int){})", src(0), src(1), src(2))),
|
||||
"v_dot2_i32_i16" => Some(format!("(uint)({} * {} + {} * {} + (int){})", si(0, false), si(1, false), si(0, true), si(1, true), src(2))),
|
||||
|
||||
Reference in New Issue
Block a user