Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-baker committed Jan 25, 2024
1 parent 1fbe307 commit 8aaed3d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions test/val/val_modes_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,10 @@ OpFunctionEnd

CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_3);
EXPECT_EQ(SPV_ERROR_INVALID_ID, ValidateInstructions(SPV_ENV_UNIVERSAL_1_3));
EXPECT_THAT(getDiagnosticString(),
HasSubstr("The Target Type operand must be a floating-point scalar type"));
EXPECT_THAT(
getDiagnosticString(),
HasSubstr(
"The Target Type operand must be a floating-point scalar type"));
}

TEST_F(ValidateMode, FPFastMathDefaultNotAFloatType) {
Expand All @@ -1379,8 +1381,10 @@ OpFunctionEnd

CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_3);
EXPECT_EQ(SPV_ERROR_INVALID_ID, ValidateInstructions(SPV_ENV_UNIVERSAL_1_3));
EXPECT_THAT(getDiagnosticString(),
HasSubstr("The Target Type operand must be a floating-point scalar type"));
EXPECT_THAT(
getDiagnosticString(),
HasSubstr(
"The Target Type operand must be a floating-point scalar type"));
}

TEST_F(ValidateMode, FPFastMathDefaultNotAFloatScalarType) {
Expand All @@ -1406,8 +1410,10 @@ OpFunctionEnd

CompileSuccessfully(spirv, SPV_ENV_UNIVERSAL_1_3);
EXPECT_EQ(SPV_ERROR_INVALID_ID, ValidateInstructions(SPV_ENV_UNIVERSAL_1_3));
EXPECT_THAT(getDiagnosticString(),
HasSubstr("The Target Type operand must be a floating-point scalar type"));
EXPECT_THAT(
getDiagnosticString(),
HasSubstr(
"The Target Type operand must be a floating-point scalar type"));
}

TEST_F(ValidateMode, FPFastMathDefaultSpecConstant) {
Expand Down

0 comments on commit 8aaed3d

Please sign in to comment.