Simplify abstract value bitcasting.
Change-Id: I173d563cd3cd17cf90caf723f29a6c1da51103b5
Reviewed-on: https://swiftshader-review.googlesource.com/7872
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-on: https://swiftshader-review.googlesource.com/8153
Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/Reactor/SubzeroReactor.cpp b/src/Reactor/SubzeroReactor.cpp
index 01f55ea..b637cd9 100644
--- a/src/Reactor/SubzeroReactor.cpp
+++ b/src/Reactor/SubzeroReactor.cpp
@@ -3222,7 +3222,7 @@
pack->addArg(y.value);
::basicBlock->appendInst(pack);
- return As<SByte8>(Swizzle(As<Int4>(RValue<Byte16>(V(result))), 0x88));
+ return As<SByte8>(Swizzle(As<Int4>(V(result)), 0x88));
}
RValue<Int2> UnpackLow(RValue<Short4> x, RValue<Short4> y)
@@ -3535,7 +3535,7 @@
pack->addArg(y.value);
::basicBlock->appendInst(pack);
- return As<Byte8>(Swizzle(As<Int4>(RValue<Byte16>(V(result))), 0x88));
+ return As<Byte8>(Swizzle(As<Int4>(V(result)), 0x88));
}
Type *UShort4::getType()