rsx/gtest: Fix unit tests build on GCC
This commit is contained in:
@@ -45,7 +45,7 @@ namespace rsx::assembler
|
|||||||
auto create_if(u32 end, u32 _else = 0)
|
auto create_if(u32 end, u32 _else = 0)
|
||||||
{
|
{
|
||||||
OPDEST dst{};
|
OPDEST dst{};
|
||||||
dst.opcode = RSX_FP_OPCODE_IFE;
|
dst.opcode = RSX_FP_OPCODE_IFE & 0x3Fu;
|
||||||
|
|
||||||
SRC1 src1{};
|
SRC1 src1{};
|
||||||
src1.else_offset = (_else ? _else : end) << 2;
|
src1.else_offset = (_else ? _else : end) << 2;
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ namespace rsx
|
|||||||
|
|
||||||
TEST(SimpleArray, Find)
|
TEST(SimpleArray, Find)
|
||||||
{
|
{
|
||||||
const rsx::simple_array<u32> arr{
|
const rsx::simple_array<int> arr{
|
||||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -316,7 +316,7 @@ namespace rsx
|
|||||||
|
|
||||||
TEST(SimpleArray, FindIf)
|
TEST(SimpleArray, FindIf)
|
||||||
{
|
{
|
||||||
const rsx::simple_array<u32> arr{
|
const rsx::simple_array<int> arr{
|
||||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user