Lines Matching refs:inst
230 for (auto& inst : context->debugs2()) {
231 EXPECT_EQ(inst.opcode(), spv::Op::OpNop);
235 for (auto& inst : context->annotations()) {
236 EXPECT_EQ(inst.opcode(), spv::Op::OpNop);
277 auto inst = context->annotation_begin();
278 EXPECT_EQ(inst->opcode(), spv::Op::OpDecorate);
279 EXPECT_EQ(inst->GetSingleWordInOperand(0), 3);
282 ++inst;
283 EXPECT_EQ(inst->opcode(), spv::Op::OpDecorationGroup);
284 EXPECT_EQ(inst->result_id(), 3);
287 ++inst;
288 EXPECT_EQ(inst->opcode(), spv::Op::OpGroupDecorate);
289 EXPECT_EQ(inst->NumInOperands(), 2);
290 EXPECT_EQ(inst->GetSingleWordInOperand(0), 3);
291 EXPECT_EQ(inst->GetSingleWordInOperand(1), 4);
294 ++inst;
295 EXPECT_EQ(inst, context->annotation_end());
341 auto inst = context->annotation_begin();
342 EXPECT_EQ(inst->opcode(), spv::Op::OpDecorationGroup);
343 EXPECT_EQ(inst->result_id(), 3);
346 ++inst;
347 EXPECT_EQ(inst->opcode(), spv::Op::OpGroupDecorate);
348 EXPECT_EQ(inst->NumInOperands(), 2);
349 EXPECT_EQ(inst->GetSingleWordInOperand(0), 3);
350 EXPECT_EQ(inst->GetSingleWordInOperand(1), 4);
353 ++inst;
354 EXPECT_EQ(inst, context->annotation_end());