More style.

This commit is contained in:
Ben Vanik
2015-08-07 21:29:03 -07:00
parent 14beb27ebc
commit a92566dfc5
131 changed files with 1141 additions and 1056 deletions

View File

@@ -18,7 +18,7 @@ using xe::cpu::frontend::PPCContext;
TEST_CASE("SWIZZLE_V128", "[instr]") {
TestFunction([](HIRBuilder& b) {
StoreVR(b, 3,
b.Swizzle(LoadVR(b, 4), INT32_TYPE, SWIZZLE_MASK(0, 1, 2, 3)));
b.Swizzle(LoadVR(b, 4), INT32_TYPE, MakeSwizzleMask(0, 1, 2, 3)));
b.Return();
})
.Run([](PPCContext* ctx) { ctx->v[4] = vec128i(0, 1, 2, 3); },
@@ -28,7 +28,7 @@ TEST_CASE("SWIZZLE_V128", "[instr]") {
});
TestFunction([](HIRBuilder& b) {
StoreVR(b, 3,
b.Swizzle(LoadVR(b, 4), INT32_TYPE, SWIZZLE_MASK(3, 2, 1, 0)));
b.Swizzle(LoadVR(b, 4), INT32_TYPE, MakeSwizzleMask(3, 2, 1, 0)));
b.Return();
})
.Run([](PPCContext* ctx) { ctx->v[4] = vec128i(0, 1, 2, 3); },
@@ -38,7 +38,7 @@ TEST_CASE("SWIZZLE_V128", "[instr]") {
});
TestFunction([](HIRBuilder& b) {
StoreVR(b, 3,
b.Swizzle(LoadVR(b, 4), INT32_TYPE, SWIZZLE_MASK(1, 1, 2, 2)));
b.Swizzle(LoadVR(b, 4), INT32_TYPE, MakeSwizzleMask(1, 1, 2, 2)));
b.Return();
})
.Run([](PPCContext* ctx) { ctx->v[4] = vec128i(0, 1, 2, 3); },