mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 19:50:05 +00:00
Add hex-format tests for !<integer>.
This commit is contained in:
parent
ea5a2a5242
commit
1a3990233c
@ -102,6 +102,12 @@ TEST_F(ImmediateIntTest, IntegerFollowingImmediate) {
|
||||
// Negative integer.
|
||||
EXPECT_EQ(CompileSuccessfully("OpConstant %10 %1 -123"),
|
||||
CompileSuccessfully("OpConstant %10 !1 -123"));
|
||||
|
||||
// Hex value(s).
|
||||
// EXPECT_EQ(CompileSuccessfully("OpConstant %10 %1 0x12345678"),
|
||||
// CompileSuccessfully("OpConstant %10 !1 0x12345678"));
|
||||
// EXPECT_EQ(CompileSuccessfully("OpConstant %10 %1 0x12345678 0x87654321"),
|
||||
// CompileSuccessfully("OpConstant %10 !1 0x12345678 0x87654321"));
|
||||
}
|
||||
|
||||
// Literal floats after !<integer> are handled correctly.
|
||||
|
Loading…
Reference in New Issue
Block a user