Home | History | Annotate | Download | only in test_generator

Lines Matching refs:code

7 #   * Redistributions of source code must retain the above copyright notice,
66 Generate code to declare the operand `struct Operands`.
73 Generate code to instantiate the operand from inside a `kTests` loop, with
112 Generate code to declare the operand as a single member in
120 Generate code to instantiate the operand as a single local variable.
122 code = "{type_name} {name} = kTests[i].operands.{name};"
123 return code.format(type_name=self.type_name, name=self.name)
212 Return a string describing what C++ code to emit before the instruction
220 Return a string describing what C++ code to emit after the instruction under
228 Generate code to declare the input in `struct Inputs`.
235 Generate code to print the input referred to by `self.name`. Optionally add
243 Generate code to print the input from the result buffer, indexed with `i`
251 Generate code to instantiate an input from the result buffer, indexed with
259 Generate code to instantiate an input from the input buffer, indexed with
267 Generate code to instantiate an input from the reference buffer, indexed
275 Generate code as a C++ expression comparing two inputs of this type.
318 code = "printf(\"0x%0{n_digit}\" {pri}, {name});"
319 return code.format(n_digit=self.NDigit(), pri=self.Pri(),
323 code = "printf(\"0x%0{n_digit}\" {pri}, results[i]->outputs[j].{name});"
324 return code.format(n_digit=self.NDigit(), pri=self.Pri(), name=self.name)
327 code = "{type_name} {name}{suffix} = results[i]->outputs[j].{name};"
328 return code.format(type_name=self.TypeName(), name=self.name, suffix=suffix)
331 code = "{type_name} {name}{suffix} = kTests[i].inputs[j].{name};"
332 return code.format(type_name=self.TypeName(), name=self.name, suffix=suffix)
335 code = "{type_name} {name}{suffix} = reference[i].outputs[j].{name};"
336 return code.format(type_name=self.TypeName(), name=self.name, suffix=suffix)
377 code = "printf(\"0x%0{n_digit}\" {pri} \"(%g)\", {name}, RawbitsToDouble({name}));"
378 return code.format(n_digit=self.NDigit(), pri=self.Pri(),
385 describe what C++ code to emit to set and record the value of a register
390 code = "__ Ldr({name}, MemOperand(input_ptr, offsetof(Inputs, {name})));"
391 return code.format(name=self.name)
394 code = "__ Str({name}, MemOperand(result_ptr, offsetof(Inputs, {name})));"
395 return code.format(name=self.name)
400 code = "__ Vldr({name}, MemOperand(input_ptr, offsetof(Inputs, {name})));"
401 return code.format(name=self.name)
404 code = "__ Vstr({name}, MemOperand(result_ptr, offsetof(Inputs, {name})));"
405 return code.format(name=self.name)
412 The `Prologue` and `Epilogue` methods describe what C++ code to emit to set
421 code = """{{
434 return code.format(self.name)
437 code = """{{
446 return code.format(self.name)
453 The `Prologue` and `Epilogue` methods describe what C++ code to emit to set
461 code = """{{
474 return code.format(self.name)
477 code = """{{
486 return code.format(self.name)
493 The `Prologue` and `Epilogue` methods describe what C++ code to emit to set
499 code = """{{
506 return code.format(self.name)
509 code = """{{
518 return code.format(self.name)
524 code = """{{
531 return code.format(self.name)
534 code = """{{
541 return code.format(self.name)
567 code = '''printf("{{0x%08" PRIx32 ", 0x%08" PRIx32 "}}",
569 return code.format(name=self.name + suffix)
572 code = '''printf("{{0x%08" PRIx32 ", 0x%08" PRIx32 "}}",
575 return code.format(name=self.name)
578 code = """uint32_t {name}{suffix}[2] = {{
583 return code.format(name=self.name, suffix=suffix)
586 code = """uint32_t {name}{suffix}[2] = {{
591 return code.format(name=self.name, suffix=suffix)
594 code = """uint32_t {name}{suffix}[2] = {{
599 return code.format(name=self.name, suffix=suffix)
650 # TODO: This generated code does not support recording the state for