Home
last modified time | relevance | path

Searched refs:op_b (Results 1 – 25 of 153) sorted by relevance

1234567

/dports/science/py-OpenFermion/OpenFermion-1.3.0/src/openfermion/circuits/
H A Dtrotter_exp_to_qgates_test.py105 gold.append(op_b * (1.))
121 gold.append(op_b * 7. / 36)
123 gold.append(op_b * 1. / 2)
130 gold.append(op_b * -1. / 2)
137 gold.append(op_b * 3. / 4)
153 ham = op_a + op_b + op_c
162 gold.append(op_b * 1. / 2)
176 gold.append(op_b * 3. / 4)
189 ham = op_a + op_b + op_c
193 gold.append(op_b * 0.5)
[all …]
/dports/emulators/yuzu/yuzu-0b47f7a46/src/video_core/shader/decode/
H A Darithmetic.cpp24 Node op_b = [&] { in DecodeArithmetic() local
38 SetRegister(bb, instr.gpr0, op_b); in DecodeArithmetic()
54 op_b = GetOperandAbsNegFloat(op_b, false, instr.fmul.negate_b); in DecodeArithmetic()
72 Node value = Operation(OperationCode::FMul, PRECISE, op_a, op_b); in DecodeArithmetic()
84 op_b = GetOperandAbsNegFloat(op_b, instr.alu.abs_b, instr.alu.negate_b); in DecodeArithmetic()
86 Node value = Operation(OperationCode::FAdd, PRECISE, op_a, op_b); in DecodeArithmetic()
126 op_b = GetOperandAbsNegFloat(op_b, instr.alu.abs_b, instr.alu.negate_b); in DecodeArithmetic()
130 const Node min = Operation(OperationCode::FMin, NO_PRECISE, op_a, op_b); in DecodeArithmetic()
131 const Node max = Operation(OperationCode::FMax, NO_PRECISE, op_a, op_b); in DecodeArithmetic()
155 op_b = GetOperandAbsNegFloat(op_b, instr.alu.abs_b, instr.alu.negate_b); in DecodeArithmetic()
[all …]
H A Darithmetic_integer.cpp24 Node op_b = [&]() { in DecodeArithmeticInteger() local
42 op_b = GetOperandAbsNegInteger(op_b, false, instr.alu_integer.negate_b, true); in DecodeArithmeticInteger()
44 Node value = Operation(OperationCode::UAdd, op_a, op_b); in DecodeArithmeticInteger()
57 Node carry = Operation(OperationCode::LogicalAddCarry, op_a, op_b); in DecodeArithmeticInteger()
93 op_b = ApplyHeight(instr.iadd3.height_b, op_b); in DecodeArithmeticInteger()
98 op_b = GetOperandAbsNegInteger(op_b, false, instr.iadd3.neg_b, true); in DecodeArithmeticInteger()
136 op_b = GetOperandAbsNegInteger(op_b, false, instr.alu_integer.negate_b, true); in DecodeArithmeticInteger()
150 op_b = Operation(OperationCode::IBitwiseNot, NO_PRECISE, op_b); in DecodeArithmeticInteger()
161 op_b = Operation(OperationCode::IBitwiseNot, NO_PRECISE, std::move(op_b)); in DecodeArithmeticInteger()
218 op_b = Operation(OperationCode::IBitwiseNot, NO_PRECISE, op_b); in DecodeArithmeticInteger()
[all …]
H A Darithmetic_integer_immediate.cpp25 Node op_b = Immediate(static_cast<s32>(instr.alu.imm20_32)); in DecodeArithmeticIntegerImmediate() local
33 Node value = Operation(OperationCode::IAdd, PRECISE, std::move(op_a), std::move(op_b)); in DecodeArithmeticIntegerImmediate()
45 op_b = Operation(OperationCode::IBitwiseNot, NO_PRECISE, std::move(op_b)); in DecodeArithmeticIntegerImmediate()
49 std::move(op_b), PredicateResultMode::None, Pred::UnusedIndex, in DecodeArithmeticIntegerImmediate()
62 Node op_b, PredicateResultMode predicate_mode, Pred predicate, in WriteLogicOperation() argument
67 return Operation(OperationCode::IBitwiseAnd, PRECISE, std::move(op_a), std::move(op_b)); in WriteLogicOperation()
69 return Operation(OperationCode::IBitwiseOr, PRECISE, std::move(op_a), std::move(op_b)); in WriteLogicOperation()
71 return Operation(OperationCode::IBitwiseXor, PRECISE, std::move(op_a), std::move(op_b)); in WriteLogicOperation()
73 return op_b; in WriteLogicOperation()
H A Darithmetic_half.cpp64 auto [type_b, op_b] = [this, instr, opcode]() -> std::pair<HalfType, Node> { in DecodeArithmeticHalf()
77 op_b = UnpackHalfFloat(op_b, type_b); in DecodeArithmeticHalf()
78 op_b = GetOperandAbsNegHalf(op_b, absolute_b, negate_b); in DecodeArithmeticHalf()
80 Node value = [this, opcode, op_a, op_b = op_b] { in DecodeArithmeticHalf()
84 return Operation(OperationCode::HAdd, PRECISE, op_a, op_b); in DecodeArithmeticHalf()
87 return Operation(OperationCode::HMul, PRECISE, op_a, op_b); in DecodeArithmeticHalf()
H A Dhalf_set_predicate.cpp31 Node op_b{}; in DecodeHalfSetPredicate() local
36 op_b = GetOperandAbsNegHalf(GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset()), in DecodeHalfSetPredicate()
39 op_b = UnpackHalfFloat(std::move(op_b), Tegra::Shader::HalfType::F32); in DecodeHalfSetPredicate()
44 op_b = UnpackHalfImmediate(instr, true); in DecodeHalfSetPredicate()
49 op_b = in DecodeHalfSetPredicate()
55 op_b = Immediate(0); in DecodeHalfSetPredicate()
65 const Node comparison = GetPredicateComparisonHalf(cond, op_a, op_b); in DecodeHalfSetPredicate()
H A Dhalf_set.cpp56 Node op_b = [this, instr, opcode] { in DecodeHalfSet() local
81 op_b = GetOperandAbsNegHalf(move(op_b), abs_b, neg_b); in DecodeHalfSet()
84 op_b = UnpackHalfFloat(move(op_b), instr.hset2.type_b); in DecodeHalfSet()
92 Node comparison_pair = GetPredicateComparisonHalf(cond, op_a, op_b); in DecodeHalfSet()
H A Dshift.cpp92 Node op_b = [this, instr] { in DecodeShift() local
106 op_b = instr.shr.wrap ? WrapShift(move(op_b)) : ClampShift(move(op_b)); in DecodeShift()
109 move(op_a), move(op_b)); in DecodeShift()
117 Node value = Operation(OperationCode::ILogicalShiftLeft, op_a, op_b); in DecodeShift()
131 op_b = Immediate(static_cast<u32>(instr.shf.immediate)); in DecodeShift()
134 Node shift = instr.shf.wrap ? WrapShift(move(op_b), size) : ClampShift(move(op_b), size); in DecodeShift()
H A Dfloat_set.cpp22 Node op_b = [&]() { in DecodeFloatSet() local
32 op_b = GetOperandAbsNegFloat(op_b, instr.fset.abs_b != 0, instr.fset.neg_b != 0); in DecodeFloatSet()
39 const Node first_pred = GetPredicateComparisonFloat(instr.fset.cond, op_a, op_b); in DecodeFloatSet()
H A Dfloat_set_predicate.cpp22 Node op_b = [&]() { in DecodeFloatSetPredicate() local
31 op_b = GetOperandAbsNegFloat(std::move(op_b), instr.fsetp.abs_b, instr.fsetp.neg_b); in DecodeFloatSetPredicate()
37 GetPredicateComparisonFloat(instr.fsetp.cond, std::move(op_a), std::move(op_b)); in DecodeFloatSetPredicate()
H A Dffma.cpp30 auto [op_b, op_c] = [&]() -> std::tuple<Node, Node> { in DecodeFfma()
50 op_b = GetOperandAbsNegFloat(op_b, false, instr.ffma.negate_b); in DecodeFfma()
53 Node value = Operation(OperationCode::FFma, PRECISE, op_a, op_b, op_c); in DecodeFfma()
H A Dhfma2.cpp32 auto [saturate, type_b, op_b, type_c, in DecodeHfma2()
61 op_b = GetOperandAbsNegHalf(UnpackHalfFloat(op_b, type_b), false, neg_b); in DecodeHfma2()
64 Node value = Operation(OperationCode::HFma, PRECISE, op_a, op_b, op_c); in DecodeHfma2()
H A Darithmetic_half_immediate.cpp34 const Node op_b = UnpackHalfImmediate(instr, true); in DecodeArithmeticHalfImmediate() local
39 return Operation(OperationCode::HAdd, PRECISE, op_a, op_b); in DecodeArithmeticHalfImmediate()
41 return Operation(OperationCode::HMul, PRECISE, op_a, op_b); in DecodeArithmeticHalfImmediate()
H A Dvideo.cpp34 const Node op_b = [this, instr] { in DecodeVideo() local
53 Node value = SignedOperation(OperationCode::IMul, result_signed, NO_PRECISE, op_a, op_b); in DecodeVideo()
71 const Node first_pred = GetPredicateComparisonInteger(instr.vsetp.cond, sign, op_a, op_b); in DecodeVideo()
128 Node op_b = GetRegister(instr.gpr20); in DecodeVMNMX() local
135 Node value = SignedOperation(operation_a, is_oper1_signed, move(op_a), move(op_b)); in DecodeVMNMX()
H A Dbfe.cpp21 Node op_b = [&] { in DecodeBfe() local
67 const auto offset = SignedOperation(OperationCode::IBitfieldExtract, is_signed, op_b, in DecodeBfe()
69 const auto bits = SignedOperation(OperationCode::IBitfieldExtract, is_signed, op_b, in DecodeBfe()
H A Dxmad.cpp71 const Node op_b = in DecodeXmad() local
76 Node product = SignedOperation(OperationCode::IMul, is_signed_a, op_a, op_b); in DecodeXmad()
104 GetPredicateComparisonInteger(PredCondition::EQ, is_signed_b, op_b, Immediate(0)); in DecodeXmad()
114 SignedOperation(OperationCode::IBitwiseAnd, is_signed_b, op_b, in DecodeXmad()
H A Dinteger_set.cpp19 const Node op_b = [&]() { in DecodeIntegerSet() local
33 GetPredicateComparisonInteger(instr.iset.cond, instr.iset.is_signed, op_a, op_b); in DecodeIntegerSet()
/dports/science/py-OpenFermion/OpenFermion-1.3.0/src/openfermion/transforms/repconversions/
H A Dweyl_ordering_test.py28 self.op_b = 'p'
33 res = mccoy(self.mode, self.op_a, self.op_b, m, n)
40 res = mccoy(self.mode, self.op_a, self.op_b, m, n)
46 res = mccoy(self.mode, self.op_a, self.op_b, m, n)
47 expected = {((0, self.op_b),): 1.0}
53 res = mccoy(self.mode, self.op_a, self.op_b, m, n)
59 res = mccoy(self.mode, self.op_a, self.op_b, m, n)
60 expected = {((0, self.op_b), (0, self.op_b)): 1.0}
66 res = mccoy(self.mode, self.op_a, self.op_b, m, n)
68 ((0, self.op_a), (0, self.op_b)): 0.5,
[all …]
H A Dweyl_ordering.py19 def mccoy(mode, op_a, op_b, m, n): argument
33 new_term = tuple([(mode, op_b)] * r + [(mode, op_a)] * m +
34 [(mode, op_b)] * (n - r))
/dports/devel/py-graphql-core/graphql-core-3.1.6/tests/error/
H A Dtest_graphql_error.py215 op_b = doc_b.definitions[0]
216 op_b = cast(ObjectTypeDefinitionNode, op_b)
217 assert op_b and op_b.kind == "object_type_definition" and op_b.fields
218 field_b = op_b.fields[0]
/dports/science/py-OpenFermion/OpenFermion-1.3.0/src/openfermion/ops/operators/
H A Dqubit_operator_test.py107 op_b = QubitOperator(((1, 'Y'), (0, 'X'), (2, 'Z')), -1.5)
108 op_a *= op_b
109 op_b *= op_a
112 assert ((0, 'X'), (1, 'Y')) in op_b.terms
113 assert op_b.terms[((0, 'X'), (1, 'Y'))] == -2.25j
/dports/science/py-OpenFermion/OpenFermion-1.3.0/src/openfermion/transforms/opconversions/
H A Dterm_reordering_test.py74 op_b = BosonOperator(((2, 0), (4, 0), (2, 1)), 88.)
75 normal_ordered_b = normal_ordered(op_b)
119 op_b = FermionOperator(((2, 0), (4, 0), (2, 1)), -88.)
120 normal_ordered_b = normal_ordered(op_b)
178 op_b = QuadOperator('p0 q0 p3', 88.)
179 normal_ordered_b = normal_ordered(op_b, hbar=2)
/dports/games/quakeforge/quakeforge-0.7.2/tools/qfcc/source/
H A Dopcodes.c95 opcode_find (const char *name, operand_t *op_a, operand_t *op_b, in opcode_find() argument
106 search_op.type_b = op_b ? op_b->type : ev_invalid; in opcode_find()
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/
H A Dgengenblitter.c20 enum tree_op { op_and, op_or, op_xor, op_not, op_a, op_b, op_c, op_d, op_e, op_f } op; enumerator
25 static struct tree_n TRB = { op_b, NULL, NULL };
68 case op_b: in opidx()
151 case op_b: in do_sprint_tree()
207 case op_b: in which_fn()
229 case op_b: in tree_used_mask()
/dports/emulators/uae/uae-0.8.29/src/
H A Dgengenblitter.c24 enum tree_op { op_and, op_or, op_xor, op_not, op_a, op_b, op_c, op_d, op_e, op_f } op; enumerator
29 static struct tree_n TRB = { op_b, NULL, NULL };
72 case op_b: in opidx()
155 case op_b: in do_sprint_tree()
211 case op_b: in which_fn()
233 case op_b: in tree_used_mask()

1234567