diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-tools/test/opt/vector_dce_test.cpp')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/spirv-tools/test/opt/vector_dce_test.cpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/vector_dce_test.cpp b/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/vector_dce_test.cpp index a978a07f9d2..594995c16d2 100644 --- a/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/vector_dce_test.cpp +++ b/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/vector_dce_test.cpp @@ -1158,74 +1158,6 @@ OpFunctionEnd SinglePassRunAndCheck<VectorDCE>(text, text, true, true); } -TEST_F(VectorDCETest, InsertWithNoIndices) { - const std::string text = R"( -; CHECK: OpEntryPoint Fragment {{%\w+}} "PSMain" [[in1:%\w+]] [[in2:%\w+]] [[out:%\w+]] -; CHECK: OpFunction -; CHECK: [[ld:%\w+]] = OpLoad %v4float [[in2]] -; CHECK: OpStore [[out]] [[ld]] - OpCapability Shader - OpMemoryModel Logical GLSL450 - OpEntryPoint Fragment %1 "PSMain" %2 %14 %3 - OpExecutionMode %1 OriginUpperLeft - %void = OpTypeVoid - %5 = OpTypeFunction %void - %float = OpTypeFloat 32 - %v4float = OpTypeVector %float 4 -%_ptr_Input_v4float = OpTypePointer Input %v4float -%_ptr_Output_v4float = OpTypePointer Output %v4float - %2 = OpVariable %_ptr_Input_v4float Input - %14 = OpVariable %_ptr_Input_v4float Input - %3 = OpVariable %_ptr_Output_v4float Output - %1 = OpFunction %void None %5 - %10 = OpLabel - %13 = OpLoad %v4float %14 - %11 = OpLoad %v4float %2 - %12 = OpCompositeInsert %v4float %13 %11 - OpStore %3 %12 - OpReturn - OpFunctionEnd -)"; - - SinglePassRunAndMatch<VectorDCE>(text, true); -} - -TEST_F(VectorDCETest, ExtractWithNoIndices) { - const std::string text = R"( -; CHECK: OpLoad %float -; CHECK: [[ld:%\w+]] = OpLoad %v4float -; CHECK: [[ex1:%\w+]] = OpCompositeExtract %v4float [[ld]] -; CHECK: [[ex2:%\w+]] = OpCompositeExtract %float [[ex1]] 1 -; CHECK: OpStore {{%\w+}} [[ex2]] - OpCapability Shader - OpMemoryModel Logical GLSL450 - OpEntryPoint Fragment %1 "PSMain" %2 %14 %3 - OpExecutionMode %1 OriginUpperLeft - %void = OpTypeVoid - %5 = OpTypeFunction %void - %float = OpTypeFloat 32 - %v4float = OpTypeVector %float 4 -%_ptr_Input_float = OpTypePointer Input %float -%_ptr_Input_v4float = OpTypePointer Input %v4float -%_ptr_Output_float = OpTypePointer Output %float - %2 = OpVariable %_ptr_Input_v4float Input - %14 = OpVariable %_ptr_Input_float Input - %3 = OpVariable %_ptr_Output_float Output - %1 = OpFunction %void None %5 - %10 = OpLabel - %13 = OpLoad %float %14 - %11 = OpLoad %v4float %2 - %12 = OpCompositeInsert %v4float %13 %11 0 - %20 = OpCompositeExtract %v4float %12 - %21 = OpCompositeExtract %float %20 1 - OpStore %3 %21 - OpReturn - OpFunctionEnd -)"; - - SinglePassRunAndMatch<VectorDCE>(text, true); -} - } // namespace } // namespace opt } // namespace spvtools |