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:
parent
ca2c1ed370
commit
a35b57f91f
|
@ -212,9 +212,9 @@ const char* GetUnaryBuiltInFunctionName(SpvOp opcode) {
|
||||||
case SpvOpAll:
|
case SpvOpAll:
|
||||||
return "all";
|
return "all";
|
||||||
case SpvOpIsNan:
|
case SpvOpIsNan:
|
||||||
return "is_nan";
|
return "isNan";
|
||||||
case SpvOpIsInf:
|
case SpvOpIsInf:
|
||||||
return "is_inf";
|
return "isInf";
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1380,7 +1380,7 @@ TEST_F(SpvLogicalTest, IsNan_Scalar) {
|
||||||
__bool
|
__bool
|
||||||
{
|
{
|
||||||
Call[not set]{
|
Call[not set]{
|
||||||
Identifier[not set]{is_nan}
|
Identifier[not set]{isNan}
|
||||||
(
|
(
|
||||||
ScalarConstructor[not set]{50.000000}
|
ScalarConstructor[not set]{50.000000}
|
||||||
)
|
)
|
||||||
|
@ -1410,7 +1410,7 @@ TEST_F(SpvLogicalTest, IsNan_Vector) {
|
||||||
__vec_2__bool
|
__vec_2__bool
|
||||||
{
|
{
|
||||||
Call[not set]{
|
Call[not set]{
|
||||||
Identifier[not set]{is_nan}
|
Identifier[not set]{isNan}
|
||||||
(
|
(
|
||||||
TypeConstructor[not set]{
|
TypeConstructor[not set]{
|
||||||
__vec_2__f32
|
__vec_2__f32
|
||||||
|
@ -1444,7 +1444,7 @@ TEST_F(SpvLogicalTest, IsInf_Scalar) {
|
||||||
__bool
|
__bool
|
||||||
{
|
{
|
||||||
Call[not set]{
|
Call[not set]{
|
||||||
Identifier[not set]{is_inf}
|
Identifier[not set]{isInf}
|
||||||
(
|
(
|
||||||
ScalarConstructor[not set]{50.000000}
|
ScalarConstructor[not set]{50.000000}
|
||||||
)
|
)
|
||||||
|
@ -1474,7 +1474,7 @@ TEST_F(SpvLogicalTest, IsInf_Vector) {
|
||||||
__vec_2__bool
|
__vec_2__bool
|
||||||
{
|
{
|
||||||
Call[not set]{
|
Call[not set]{
|
||||||
Identifier[not set]{is_inf}
|
Identifier[not set]{isInf}
|
||||||
(
|
(
|
||||||
TypeConstructor[not set]{
|
TypeConstructor[not set]{
|
||||||
__vec_2__f32
|
__vec_2__f32
|
||||||
|
|
Loading…
Reference in New Issue