Constant vec128 swap.

This commit is contained in:
Ben Vanik 2014-01-05 16:22:41 -08:00
parent a78447f015
commit 56476d276d
1 changed files with 5 additions and 0 deletions

View File

@ -537,6 +537,11 @@ void Value::ByteSwap() {
case INT64_TYPE:
constant.i64 = XESWAP64(constant.i64);
break;
case VEC128_TYPE:
for (int n = 0; n < 4; n++) {
constant.v128.i4[n] = XESWAP32(constant.v128.i4[n]);
}
break;
default:
XEASSERTALWAYS();
break;