This list shows the (direct) equivalence between proposed opcodes and
their Khronos OpenCL equivalents.
+For RISCV opcode encodings see
+[[rv_major_opcode_1010011]]
See
<https://www.khronos.org/registry/spir-v/specs/unified1/OpenCL.ExtendedInstructionSet.100.html>
Note (1) FSINCOS is macro-op fused (see below).
-# List of 2-arg opcodes
+## List of 2-arg opcodes
[[!table data="""
opcode | Description | pseudocode | Extension |
FHYPOT | hypotenuse | rd = sqrt(rs1^2 + rs2^2) | ZftransAdv |
"""]]
-# List of 1-arg transcendental opcodes
+## List of 1-arg transcendental opcodes
[[!table data="""
opcode | Description | pseudocode | Extension |
FLOG10 | log base 10 | rd = log(10, rs1) | ZftransExt |
"""]]
-# List of 1-arg trigonometric opcodes
+## List of 1-arg trigonometric opcodes
[[!table data="""
opcode | Description | pseudo-code | Extension |