Add std450 instructions 49-52.
authorDejan Mircevski <deki@google.com>
Thu, 27 Aug 2015 15:23:54 +0000 (11:23 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:52:01 +0000 (12:52 -0400)
source/ext_inst.cpp
test/ExtInstGLSLstd450.cpp

index 7d231d6..fcbda85 100644 (file)
@@ -66,6 +66,10 @@ static const spv_ext_inst_desc_t glslStd450Entries[] = {
     // clang-format off
     {"Smoothstep", GLSLstd450::GLSLstd450SmoothStep, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID}},
     // clang-format on
+    {GL450InstWithThreeIdParam(Fma)},
+    {GL450InstWithTwoIdParam(Frexp)},
+    {GL450InstWithOneIdParam(FrexpStruct)},
+    {GL450InstWithTwoIdParam(Ldexp)},
     // TODO: Add remaining GLSL.std.450 instructions
 };
 
index fe82436..6938f63 100644 (file)
@@ -179,4 +179,8 @@ INSTANTIATE_TEST_CASE_P(
         {kF32Type, kF32Const, "%4", "Mix", "%5 %5 %5", 46, 8, {5, 5, 5}},
         {kF32Type, kF32Const, "%4", "Step", "%5 %5", 47, 7, {5, 5}},
         {kF32Type, kF32Const, "%4", "Smoothstep", "%5 %5 %5", 48, 8, {5, 5, 5}},
+        {kF32Type, kF32Const, "%4", "Fma", "%5 %5 %5", 49, 8, {5, 5, 5}},
+        {kF32Type, kF32Const, "%4", "Frexp", "%5 %5", 50, 7, {5, 5}},
+        {kF32Type, kF32Const, "%4", "FrexpStruct", "%5", 51, 6, {5}},
+        {kF32Type, kF32Const, "%4", "Ldexp", "%5 %5", 52, 7, {5, 5}},
     })));