diff --git a/src/alloy/backend/x64/x64_sequences.cc b/src/alloy/backend/x64/x64_sequences.cc index c11016f03..0a9de3fbc 100644 --- a/src/alloy/backend/x64/x64_sequences.cc +++ b/src/alloy/backend/x64/x64_sequences.cc @@ -5089,7 +5089,12 @@ EMITTER(UNPACK, MATCH(I, V128<>>)) { // ARGB (WXYZ) -> RGBA (XYZW) // XMLoadColor if (i.src1.is_constant) { - assert_always(); + if (i.src1.value->IsConstantZero()) { + e.vmovaps(i.dest, e.GetXmmConstPtr(XMMOne)); + return; + } else { + assert_always(); + } } // src = ZZYYXXWW // Unpack to 000000ZZ,000000YY,000000XX,000000WW