Lines Matching refs:op

79   const Operator* op = (common.*sop.constructor)();  in TEST_P()  local
81 EXPECT_EQ(sop.value_input_count, op->ValueInputCount()); in TEST_P()
82 EXPECT_EQ(sop.effect_input_count, op->EffectInputCount()); in TEST_P()
83 EXPECT_EQ(sop.control_input_count, op->ControlInputCount()); in TEST_P()
86 OperatorProperties::GetTotalInputCount(op)); in TEST_P()
88 EXPECT_EQ(sop.value_output_count, op->ValueOutputCount()); in TEST_P()
89 EXPECT_EQ(sop.effect_output_count, op->EffectOutputCount()); in TEST_P()
90 EXPECT_EQ(sop.control_output_count, op->ControlOutputCount()); in TEST_P()
97 const Operator* op = (common.*sop.constructor)(); in TEST_P() local
98 EXPECT_EQ(sop.opcode, op->opcode()); in TEST_P()
105 const Operator* op = (common.*sop.constructor)(); in TEST_P() local
106 EXPECT_EQ(sop.properties, op->properties()); in TEST_P()
175 const Operator* const op = common()->End(input_count); in TEST_F() local
176 EXPECT_EQ(IrOpcode::kEnd, op->opcode()); in TEST_F()
177 EXPECT_EQ(Operator::kKontrol, op->properties()); in TEST_F()
178 EXPECT_EQ(0, op->ValueInputCount()); in TEST_F()
179 EXPECT_EQ(0, op->EffectInputCount()); in TEST_F()
180 EXPECT_EQ(input_count, static_cast<uint32_t>(op->ControlInputCount())); in TEST_F()
182 OperatorProperties::GetTotalInputCount(op))); in TEST_F()
183 EXPECT_EQ(0, op->ValueOutputCount()); in TEST_F()
184 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
185 EXPECT_EQ(0, op->ControlOutputCount()); in TEST_F()
192 const Operator* const op = common()->Return(input_count); in TEST_F() local
193 EXPECT_EQ(IrOpcode::kReturn, op->opcode()); in TEST_F()
194 EXPECT_EQ(Operator::kNoThrow, op->properties()); in TEST_F()
195 EXPECT_EQ(input_count, op->ValueInputCount()); in TEST_F()
196 EXPECT_EQ(1, op->EffectInputCount()); in TEST_F()
197 EXPECT_EQ(1, op->ControlInputCount()); in TEST_F()
198 EXPECT_EQ(2 + input_count, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
199 EXPECT_EQ(0, op->ValueOutputCount()); in TEST_F()
200 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
201 EXPECT_EQ(1, op->ControlOutputCount()); in TEST_F()
208 const Operator* const op = common()->Branch(hint); in TEST_F() local
209 EXPECT_EQ(IrOpcode::kBranch, op->opcode()); in TEST_F()
210 EXPECT_EQ(Operator::kKontrol, op->properties()); in TEST_F()
211 EXPECT_EQ(hint, BranchHintOf(op)); in TEST_F()
212 EXPECT_EQ(1, op->ValueInputCount()); in TEST_F()
213 EXPECT_EQ(0, op->EffectInputCount()); in TEST_F()
214 EXPECT_EQ(1, op->ControlInputCount()); in TEST_F()
215 EXPECT_EQ(2, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
216 EXPECT_EQ(0, op->ValueOutputCount()); in TEST_F()
217 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
218 EXPECT_EQ(2, op->ControlOutputCount()); in TEST_F()
227 const Operator* const op = common()->IfException(hint); in TEST_F() local
228 EXPECT_EQ(IrOpcode::kIfException, op->opcode()); in TEST_F()
229 EXPECT_EQ(Operator::kKontrol, op->properties()); in TEST_F()
230 EXPECT_EQ(0, op->ValueInputCount()); in TEST_F()
231 EXPECT_EQ(1, op->EffectInputCount()); in TEST_F()
232 EXPECT_EQ(1, op->ControlInputCount()); in TEST_F()
233 EXPECT_EQ(2, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
234 EXPECT_EQ(1, op->ValueOutputCount()); in TEST_F()
235 EXPECT_EQ(1, op->EffectOutputCount()); in TEST_F()
236 EXPECT_EQ(1, op->ControlOutputCount()); in TEST_F()
243 const Operator* const op = common()->Switch(cases); in TEST_F() local
244 EXPECT_EQ(IrOpcode::kSwitch, op->opcode()); in TEST_F()
245 EXPECT_EQ(Operator::kKontrol, op->properties()); in TEST_F()
246 EXPECT_EQ(1, op->ValueInputCount()); in TEST_F()
247 EXPECT_EQ(0, op->EffectInputCount()); in TEST_F()
248 EXPECT_EQ(1, op->ControlInputCount()); in TEST_F()
249 EXPECT_EQ(2, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
250 EXPECT_EQ(0, op->ValueOutputCount()); in TEST_F()
251 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
252 EXPECT_EQ(static_cast<int>(cases), op->ControlOutputCount()); in TEST_F()
259 const Operator* const op = common()->IfValue(value); in TEST_F() local
260 EXPECT_EQ(IrOpcode::kIfValue, op->opcode()); in TEST_F()
261 EXPECT_EQ(Operator::kKontrol, op->properties()); in TEST_F()
262 EXPECT_EQ(value, OpParameter<int32_t>(op)); in TEST_F()
263 EXPECT_EQ(0, op->ValueInputCount()); in TEST_F()
264 EXPECT_EQ(0, op->EffectInputCount()); in TEST_F()
265 EXPECT_EQ(1, op->ControlInputCount()); in TEST_F()
266 EXPECT_EQ(1, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
267 EXPECT_EQ(0, op->ValueOutputCount()); in TEST_F()
268 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
269 EXPECT_EQ(1, op->ControlOutputCount()); in TEST_F()
284 const Operator* const op = common()->Select(rep, hint); in TEST_F() local
285 EXPECT_EQ(IrOpcode::kSelect, op->opcode()); in TEST_F()
286 EXPECT_EQ(Operator::kPure, op->properties()); in TEST_F()
287 EXPECT_EQ(rep, SelectParametersOf(op).representation()); in TEST_F()
288 EXPECT_EQ(hint, SelectParametersOf(op).hint()); in TEST_F()
289 EXPECT_EQ(3, op->ValueInputCount()); in TEST_F()
290 EXPECT_EQ(0, op->EffectInputCount()); in TEST_F()
291 EXPECT_EQ(0, op->ControlInputCount()); in TEST_F()
292 EXPECT_EQ(3, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
293 EXPECT_EQ(1, op->ValueOutputCount()); in TEST_F()
294 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
295 EXPECT_EQ(0, op->ControlOutputCount()); in TEST_F()
303 const Operator* op = common()->Float32Constant(value); in TEST_F() local
304 EXPECT_PRED2(base::bit_equal_to<float>(), value, OpParameter<float>(op)); in TEST_F()
305 EXPECT_EQ(0, op->ValueInputCount()); in TEST_F()
306 EXPECT_EQ(0, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
307 EXPECT_EQ(0, op->ControlOutputCount()); in TEST_F()
308 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
309 EXPECT_EQ(1, op->ValueOutputCount()); in TEST_F()
324 const Operator* op = common()->Float64Constant(value); in TEST_F() local
325 EXPECT_PRED2(base::bit_equal_to<double>(), value, OpParameter<double>(op)); in TEST_F()
326 EXPECT_EQ(0, op->ValueInputCount()); in TEST_F()
327 EXPECT_EQ(0, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
328 EXPECT_EQ(0, op->ControlOutputCount()); in TEST_F()
329 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
330 EXPECT_EQ(1, op->ValueOutputCount()); in TEST_F()
345 const Operator* op = common()->NumberConstant(value); in TEST_F() local
346 EXPECT_PRED2(base::bit_equal_to<double>(), value, OpParameter<double>(op)); in TEST_F()
347 EXPECT_EQ(0, op->ValueInputCount()); in TEST_F()
348 EXPECT_EQ(0, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
349 EXPECT_EQ(0, op->ControlOutputCount()); in TEST_F()
350 EXPECT_EQ(0, op->EffectOutputCount()); in TEST_F()
351 EXPECT_EQ(1, op->ValueOutputCount()); in TEST_F()
365 const Operator* op = common()->BeginRegion(); in TEST_F() local
366 EXPECT_EQ(1, op->EffectInputCount()); in TEST_F()
367 EXPECT_EQ(1, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
368 EXPECT_EQ(0, op->ControlOutputCount()); in TEST_F()
369 EXPECT_EQ(1, op->EffectOutputCount()); in TEST_F()
370 EXPECT_EQ(0, op->ValueOutputCount()); in TEST_F()
375 const Operator* op = common()->FinishRegion(); in TEST_F() local
376 EXPECT_EQ(1, op->ValueInputCount()); in TEST_F()
377 EXPECT_EQ(1, op->EffectInputCount()); in TEST_F()
378 EXPECT_EQ(2, OperatorProperties::GetTotalInputCount(op)); in TEST_F()
379 EXPECT_EQ(0, op->ControlOutputCount()); in TEST_F()
380 EXPECT_EQ(1, op->EffectOutputCount()); in TEST_F()
381 EXPECT_EQ(1, op->ValueOutputCount()); in TEST_F()