Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/opt/ir_context_test.cpp')
-rw-r--r--test/opt/ir_context_test.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/opt/ir_context_test.cpp b/test/opt/ir_context_test.cpp
index ece04796f..dcae7cf81 100644
--- a/test/opt/ir_context_test.cpp
+++ b/test/opt/ir_context_test.cpp
@@ -1147,40 +1147,6 @@ OpFunctionEnd)";
dbg_decl = ctx->get_def_use_mgr()->GetDef(25);
EXPECT_EQ(dbg_decl->GetSingleWordOperand(kDebugDeclareOperandVariableIndex),
20);
-
- // No DebugValue should be added because result id '26' is not used for
- // DebugDeclare.
- ctx->get_debug_info_mgr()->AddDebugValueIfVarDeclIsVisible(dbg_decl, 26, 22,
- dbg_decl, nullptr);
- EXPECT_EQ(dbg_decl->NextNode()->opcode(), SpvOpReturn);
-
- // DebugValue should be added because result id '20' is used for DebugDeclare.
- ctx->get_debug_info_mgr()->AddDebugValueIfVarDeclIsVisible(dbg_decl, 20, 22,
- dbg_decl, nullptr);
- EXPECT_EQ(dbg_decl->NextNode()->GetOpenCL100DebugOpcode(),
- OpenCLDebugInfo100DebugValue);
-
- // Replace all uses of result it '20' with '26'
- EXPECT_EQ(dbg_decl->GetSingleWordOperand(kDebugDeclareOperandVariableIndex),
- 20);
- EXPECT_TRUE(ctx->ReplaceAllUsesWith(20, 26));
- EXPECT_EQ(dbg_decl->GetSingleWordOperand(kDebugDeclareOperandVariableIndex),
- 26);
-
- // No DebugValue should be added because result id '20' is not used for
- // DebugDeclare.
- ctx->get_debug_info_mgr()->AddDebugValueIfVarDeclIsVisible(dbg_decl, 20, 7,
- dbg_decl, nullptr);
- Instruction* dbg_value = dbg_decl->NextNode();
- EXPECT_EQ(dbg_value->GetOpenCL100DebugOpcode(), OpenCLDebugInfo100DebugValue);
- EXPECT_EQ(dbg_value->GetSingleWordOperand(kDebugValueOperandValueIndex), 22);
-
- // DebugValue should be added because result id '26' is used for DebugDeclare.
- ctx->get_debug_info_mgr()->AddDebugValueIfVarDeclIsVisible(dbg_decl, 26, 7,
- dbg_decl, nullptr);
- dbg_value = dbg_decl->NextNode();
- EXPECT_EQ(dbg_value->GetOpenCL100DebugOpcode(), OpenCLDebugInfo100DebugValue);
- EXPECT_EQ(dbg_value->GetSingleWordOperand(kDebugValueOperandValueIndex), 7);
}
} // namespace