Add tests for Atan2 and Pow.
authorDejan Mircevski <deki@google.com>
Thu, 27 Aug 2015 03:39:37 +0000 (23:39 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:52:01 +0000 (12:52 -0400)
Fix a typo in "ParameterizedExtInst."

test/ExtInstGLSLstd450.cpp

index 01bc7e6..e30078f 100644 (file)
@@ -49,7 +49,7 @@ struct ExtInstContext {
 
 using ExtInstGLSLstd450RoundTripTest = ::testing::TestWithParam<ExtInstContext>;
 
-TEST_P(ExtInstGLSLstd450RoundTripTest, ParamterizedExtInst) {
+TEST_P(ExtInstGLSLstd450RoundTripTest, ParameterizedExtInst) {
   spv_opcode_table opcodeTable;
   ASSERT_EQ(SPV_SUCCESS, spvOpcodeTableGet(&opcodeTable));
   spv_operand_table operandTable;
@@ -155,8 +155,8 @@ INSTANTIATE_TEST_CASE_P(
         {kF32Type, kF32Const, "%4", "Asinh", "%5", 22, 6, {5}},
         {kF32Type, kF32Const, "%4", "Acosh", "%5", 23, 6, {5}},
         {kF32Type, kF32Const, "%4", "Atanh", "%5", 24, 6, {5}},
-        /* Atan2 */
-        /* Pow */
+        {kF32Type, kF32Const, "%4", "Atan2", "%5 %5", 25, 7, {5, 5}},
+        {kF32Type, kF32Const, "%4", "Pow", "%5 %5", 26, 7, {5, 5}},
         {kF32Type, kF32Const, "%4", "Exp", "%5", 27, 6, {5}},
         {kF32Type, kF32Const, "%4", "Log", "%5", 28, 6, {5}},
         {kF32Type, kF32Const, "%4", "Exp2", "%5", 29, 6, {5}},