Commit 0f70a7fa by Nicolas Capens Committed by Nicolas Capens

Fix sign masks of narrow vectors.

The SignMask intrinsic returns the most significant bit of each byte in a 128-bit vector. For 'emulated' 8-byte vectors we expect the upper half to be ignored. Change-Id: I994e35fb9c21710c35a89add42297c3c9bad07a4 Reviewed-on: https://swiftshader-review.googlesource.com/10988Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 9f737d37
......@@ -289,7 +289,6 @@ namespace sw
}
}
return symbolValue;
}
......@@ -2865,7 +2864,7 @@ namespace sw
movmsk->addArg(x.value);
::basicBlock->appendInst(movmsk);
return RValue<Int>(V(result));
return RValue<Int>(V(result)) & 0xFF;
}
}
......@@ -3141,7 +3140,7 @@ namespace sw
movmsk->addArg(x.value);
::basicBlock->appendInst(movmsk);
return RValue<Int>(V(result));
return RValue<Int>(V(result)) & 0xFF;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment