From 56476d276d1bd8bb797ad8e44802ed6db0b6eff1 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 5 Jan 2014 16:22:41 -0800 Subject: [PATCH] Constant vec128 swap. --- src/alloy/hir/value.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/alloy/hir/value.cc b/src/alloy/hir/value.cc index 156768903..88201ccf1 100644 --- a/src/alloy/hir/value.cc +++ b/src/alloy/hir/value.cc @@ -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;