Skip to content

Commit

Permalink
Unpack d3dcolor const.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Sep 1, 2014
1 parent 8dcfe94 commit c00e162
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/alloy/backend/x64/x64_sequences.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5089,7 +5089,12 @@ EMITTER(UNPACK, MATCH(I<OPCODE_UNPACK, V128<>, 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
Expand Down

0 comments on commit c00e162

Please sign in to comment.