spirv-reader: rename to isNan, isInf

Fixed: tint:418
Change-Id: I09185880c838d437f84c4ef85528b4d807c0b340
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/36440
Commit-Queue: David Neto <dneto@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Auto-Submit: David Neto <dneto@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
David Neto 2021-01-05 19:22:30 +00:00 committed by Commit Bot service account
parent ca2c1ed370
commit a35b57f91f
2 changed files with 6 additions and 6 deletions

View File

@ -212,9 +212,9 @@ const char* GetUnaryBuiltInFunctionName(SpvOp opcode) {
case SpvOpAll:
return "all";
case SpvOpIsNan:
return "is_nan";
return "isNan";
case SpvOpIsInf:
return "is_inf";
return "isInf";
default:
break;
}

View File

@ -1380,7 +1380,7 @@ TEST_F(SpvLogicalTest, IsNan_Scalar) {
__bool
{
Call[not set]{
Identifier[not set]{is_nan}
Identifier[not set]{isNan}
(
ScalarConstructor[not set]{50.000000}
)
@ -1410,7 +1410,7 @@ TEST_F(SpvLogicalTest, IsNan_Vector) {
__vec_2__bool
{
Call[not set]{
Identifier[not set]{is_nan}
Identifier[not set]{isNan}
(
TypeConstructor[not set]{
__vec_2__f32
@ -1444,7 +1444,7 @@ TEST_F(SpvLogicalTest, IsInf_Scalar) {
__bool
{
Call[not set]{
Identifier[not set]{is_inf}
Identifier[not set]{isInf}
(
ScalarConstructor[not set]{50.000000}
)
@ -1474,7 +1474,7 @@ TEST_F(SpvLogicalTest, IsInf_Vector) {
__vec_2__bool
{
Call[not set]{
Identifier[not set]{is_inf}
Identifier[not set]{isInf}
(
TypeConstructor[not set]{
__vec_2__f32