Fix spirv_assembly.instruction.loop_control.
authorAndrew Woloszyn <awoloszyn@google.com>
Thu, 7 Jan 2016 14:36:34 +0000 (09:36 -0500)
committerAndrew Woloszyn <awoloszyn@google.com>
Thu, 7 Jan 2016 14:36:34 +0000 (09:36 -0500)
No longer store an i32 to a u32.
Fixes #165

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

index 933bcfba02051d2236b6a1b18738a65821f057a3..966e0616909ed7c9ee089ea5a041a3a78bf41a18 100644 (file)
@@ -2745,6 +2745,7 @@ tcu::TestCaseGroup* createLoopControlGroup (tcu::TestContext& testCtx)
 
                "%id          = OpVariable %uvec3ptr Input\n"
                "%zero        = OpConstant %i32 0\n"
+               "%uzero       = OpConstant %u32 0\n"
                "%one         = OpConstant %i32 1\n"
                "%constf1     = OpConstant %f32 1.0\n"
                "%four        = OpConstant %u32 4\n"
@@ -2752,7 +2753,7 @@ tcu::TestCaseGroup* createLoopControlGroup (tcu::TestContext& testCtx)
                "%main        = OpFunction %void None %voidf\n"
                "%entry       = OpLabel\n"
                "%i           = OpVariable %u32ptr Function\n"
-               "               OpStore %i %zero\n"
+               "               OpStore %i %uzero\n"
 
                "%idval       = OpLoad %uvec3 %id\n"
                "%x           = OpCompositeExtract %u32 %idval 0\n"