Home
last modified time | relevance | path

Searched refs:binop (Results 1 – 25 of 99) sorted by relevance

1234

/external/mesa3d/src/compiler/nir/
Dnir_opcodes.py517 def binop(name, ty, alg_props, const_expr): function
575 binop("fadd", tfloat, _2src_commutative + associative,"""
585 binop("iadd", tint, _2src_commutative + associative, "src0 + src1")
586 binop("iadd_sat", tint, _2src_commutative, """
591 binop("uadd_sat", tuint, _2src_commutative,
593 binop("isub_sat", tint, "", """
598 binop("usub_sat", tuint, "", "src0 < src1 ? 0 : src0 - src1")
600 binop("fsub", tfloat, "", """
610 binop("isub", tint, "", "src0 - src1")
615 binop("uabs_usub", tuint, "", "(src1 > src0) ? (src1 - src0) : (src0 - src1)")
[all …]
/external/python/cpython3/Lib/test/
Dtest_fstring.py101 binop = t.body[1].value.values[0].value
102 self.assertEqual(type(binop), ast.BinOp)
103 self.assertEqual(type(binop.left), ast.Name)
104 self.assertEqual(type(binop.op), ast.Mult)
105 self.assertEqual(type(binop.right), ast.Call)
106 self.assertEqual(binop.lineno, 3)
107 self.assertEqual(binop.left.lineno, 3)
108 self.assertEqual(binop.right.lineno, 3)
109 self.assertEqual(binop.col_offset, 3)
110 self.assertEqual(binop.left.col_offset, 3)
[all …]
Dtest_ast.py1384 binop = tree.body[0].value
1387 ast.copy_location(new_left, binop.left)
1388 binop.left = new_left
1391 ast.copy_location(new_right, binop.right)
1392 binop.right = new_right
1394 self.assertEqual(ast.literal_eval(binop), 10+20j)
1549 binop = fstr.values[1].value
1550 self._check_content(s, binop, 'x + y')
1563 binop = fstr.values[1].value
1564 self._check_end_pos(binop, 5, 7)
[all …]
/external/mesa3d/src/amd/llvm/
Dac_llvm_helper.cpp277 llvm::AtomicRMWInst::BinOp binop; local
280 binop = llvm::AtomicRMWInst::Xchg;
283 binop = llvm::AtomicRMWInst::Add;
286 binop = llvm::AtomicRMWInst::Sub;
289 binop = llvm::AtomicRMWInst::And;
292 binop = llvm::AtomicRMWInst::Nand;
295 binop = llvm::AtomicRMWInst::Or;
298 binop = llvm::AtomicRMWInst::Xor;
301 binop = llvm::AtomicRMWInst::Max;
304 binop = llvm::AtomicRMWInst::Min;
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp31 bool float_binop_evaluates_to(T lhs, T rhs, SpvOp binop, bool required_value) { in float_binop_evaluates_to() argument
39 switch (binop) { in float_binop_evaluates_to()
64 bool signed_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in signed_int_binop_evaluates_to() argument
67 switch (binop) { in signed_int_binop_evaluates_to()
88 bool unsigned_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in unsigned_int_binop_evaluates_to() argument
91 switch (binop) { in unsigned_int_binop_evaluates_to()
/external/angle/third_party/spirv-tools/src/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp31 bool float_binop_evaluates_to(T lhs, T rhs, SpvOp binop, bool required_value) { in float_binop_evaluates_to() argument
39 switch (binop) { in float_binop_evaluates_to()
64 bool signed_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in signed_int_binop_evaluates_to() argument
67 switch (binop) { in signed_int_binop_evaluates_to()
88 bool unsigned_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in unsigned_int_binop_evaluates_to() argument
91 switch (binop) { in unsigned_int_binop_evaluates_to()
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp31 bool float_binop_evaluates_to(T lhs, T rhs, SpvOp binop, bool required_value) { in float_binop_evaluates_to() argument
39 switch (binop) { in float_binop_evaluates_to()
64 bool signed_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in signed_int_binop_evaluates_to() argument
67 switch (binop) { in signed_int_binop_evaluates_to()
88 bool unsigned_int_binop_evaluates_to(T lhs, T rhs, SpvOp binop, in unsigned_int_binop_evaluates_to() argument
91 switch (binop) { in unsigned_int_binop_evaluates_to()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dparser.ml53 (* If this is a binop, find its precedence. *)
57 (* If this is a binop that binds at least as tightly as the current binop,
60 (* Eat the binop. *)
66 (* Okay, we know this is a binop. *)
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
D4char-promote.ll13 %binop = mul <4 x i8> %x, %y
14 %binop6 = add <4 x i8> %binop, %x
/external/llvm/test/CodeGen/X86/
D4char-promote.ll13 %binop = mul <4 x i8> %x, %y
14 %binop6 = add <4 x i8> %binop, %x
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dparser.ml89 (* If this is a binop, find its precedence. *)
93 (* If this is a binop that binds at least as tightly as the current binop,
96 (* Eat the binop. *)
102 (* Okay, we know this is a binop. *)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dparser.ml89 (* If this is a binop, find its precedence. *)
93 (* If this is a binop that binds at least as tightly as the current binop,
96 (* Eat the binop. *)
102 (* Okay, we know this is a binop. *)
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp82 if (const BinaryOperator *binop = dyn_cast<BinaryOperator>(e)) { in CheckMallocArgument() local
83 BinaryOperatorKind opc = binop->getOpcode(); in CheckMallocArgument()
86 mulop = binop; in CheckMallocArgument()
90 const Expr *lhs = binop->getLHS(); in CheckMallocArgument()
91 const Expr *rhs = binop->getRHS(); in CheckMallocArgument()
/external/swiftshader/third_party/subzero/tests_lit/reader_tests/
Dbinop-forms.test7 ; RUN: -threads=0 -bitcode-as-text %p/Inputs/binop-newform.tbc \
12 ; RUN: -threads=0 -bitcode-as-text %p/Inputs/binop-oldform.tbc \
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml100 (* If this is a binop, find its precedence. *)
104 (* If this is a binop that binds at least as tightly as the current binop,
107 (* Eat the binop. *)
113 (* Okay, we know this is a binop. *)
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dparser.ml100 (* If this is a binop, find its precedence. *)
104 (* If this is a binop that binds at least as tightly as the current binop,
107 (* Eat the binop. *)
113 (* Okay, we know this is a binop. *)
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/
Dparser.ml114 (* If this is a binop, find its precedence. *)
118 (* If this is a binop that binds at least as tightly as the current binop,
121 (* Eat the binop. *)
127 (* Okay, we know this is a binop. *)
/external/swiftshader/third_party/llvm-7.0/llvm/examples/OCaml-Kaleidoscope/Chapter7/
Dparser.ml114 (* If this is a binop, find its precedence. *)
118 (* If this is a binop that binds at least as tightly as the current binop,
121 (* Eat the binop. *)
127 (* Okay, we know this is a binop. *)
/external/swiftshader/third_party/llvm-7.0/llvm/docs/tutorial/
DOCamlLangImpl2.rst292 a sequence of [binop,primaryexpr] pairs:
322 (* If this is a binop, find its precedence. *)
326 (* If this is a binop that binds at least as tightly as the current binop,
339 (* Eat the binop. *)
345 (* Okay, we know this is a binop. *)
356 In particular, we could have "(a+b) binop unparsed" or "a + (b binop
357 unparsed)". To determine this, we look ahead at "binop" to determine its
368 If the precedence of the binop to the right of "RHS" is lower or equal
370 parentheses associate as "(a+b) binop ...". In our example, the current
389 the 'if' conditional above with "\*" as the binop to the right of the
[all …]
/external/llvm/docs/tutorial/
DOCamlLangImpl2.rst292 a sequence of [binop,primaryexpr] pairs:
322 (* If this is a binop, find its precedence. *)
326 (* If this is a binop that binds at least as tightly as the current binop,
339 (* Eat the binop. *)
345 (* Okay, we know this is a binop. *)
356 In particular, we could have "(a+b) binop unparsed" or "a + (b binop
357 unparsed)". To determine this, we look ahead at "binop" to determine its
368 If the precedence of the binop to the right of "RHS" is lower or equal
370 parentheses associate as "(a+b) binop ...". In our example, the current
389 the 'if' conditional above with "\*" as the binop to the right of the
[all …]

1234