Eliminate SSA violation in spirv_assembly.instruction.graphics.opquantize
authorDejan Mircevski <deki@google.com>
Wed, 6 Jan 2016 20:53:23 +0000 (15:53 -0500)
committerDejan Mircevski <deki@google.com>
Wed, 6 Jan 2016 20:53:23 +0000 (15:53 -0500)
Due to a bad merge in 0644efb693c3612681bda085bcbbdb31a115568b, there
was an extra assignment to %cond.

Also fix two accidentally swapped comments.

external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp

index 31add3d..b510eb3 100644 (file)
@@ -6786,18 +6786,17 @@ void createOpQuantizeSingleOptionTests(tcu::TestCaseGroup* testCtx)
                        "0x1.0p-16\n",
                        std::ldexp(1.0f, -16),
                        "%cond = OpFOrdEqual %bool %c %c_f32_0\n"
-               },      // too small negative
+               },     // too small positive
                {
                        "negative_too_small",
                        "-0x1.0p-32\n",
                        -std::ldexp(1.0f, -32),
                        "%cond = OpFOrdEqual %bool %c %c_f32_0\n"
-               },     // too small positive
+               },      // too small negative
                {
                        "negative_inf",
                        "-0x1.0p128\n",
                        -std::ldexp(1.0f, 128),
-                       "%cond = OpFOrdEqual %bool %c %c_f32_0\n"
 
                        "%gz = OpFOrdLessThan %bool %c %c_f32_0\n"
                        "%inf = OpIsInf %bool %c\n"