add transcendentals to pdf spec
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 7 Jul 2022 15:26:12 +0000 (16:26 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 7 Jul 2022 15:26:12 +0000 (16:26 +0100)
openpower/Makefile
openpower/simple_v_spec.tex
openpower/transcendentals.mdwn

index cd70e09fe943af87ff0c9bd6a56f34fc62be0ccb..df918172f35c36a0bbd3e650c5982835cb26c727 100755 (executable)
@@ -33,6 +33,7 @@ SOURCE_TEX := tex_out/remap.tex tex_out/bitmanip.tex tex_out/vector_ops.tex \
               tex_out/pseudocode_fpcvt.tex \
                 tex_out/pseudocode_svfixedarith.tex \
                 tex_out/big_integer_analysis.tex \
+                tex_out/transcendentals.tex \
                 tex_out/vector_isas.tex \
                 tex_out/fields.tex
 
@@ -235,6 +236,13 @@ tex_out/pseudocode_fixedshift.tex : $(ISA_DIR)/fixedshift.mdwn
                        -N -o tex_out/pseudocode_fixedshift.tex \
                        $(ISA_DIR)/fixedshift.mdwn
 
+tex_out/transcendentals.tex: transcendentals.mdwn
+       mkdir -p tex_out
+       ./mdwn_inline.py transcendentals.mdwn tex_out/transcendentals.mdwn
+       pandoc -f markdown -t latex --top-level-division=section \
+               --filter pandoc_img.py \
+            -N -o tex_out/transcendentals.tex tex_out/transcendentals.mdwn
+
 tex_out/svp64_appendix.tex: sv/svp64/appendix.mdwn
        mkdir -p tex_out
        ./mdwn_inline.py sv/svp64/appendix.mdwn tex_out/appendix.mdwn
index a5908ec2a68143fb0966074ff4bb3985c129595b..904a23cc425dac160472911791aa81f3f7b8706e 100644 (file)
@@ -225,6 +225,8 @@ Programme, requires full transparency.
 \input{tex_out/av_opcodes.tex}
 \chapter{Big Integer}\hypertarget{svux2fbiginteger}{}
 \input{tex_out/big_integer.tex}
+\chapter{Transcendentals}\hypertarget{transcendentals}{}
+\input{tex_out/transcendentals.tex}
 
 \begin{appendices}
 \chapter{Big Integer Analysis}\hypertarget{svux2fbigintegerux2fanalysis}{}
index 271ed7b001bd4d96d184e619dbdb67c40c357dfc..d44855d48c1bd561672d511d014ca08643059174 100644 (file)
@@ -120,8 +120,6 @@ their Khronos OpenCL equivalents, and their IEEE754-2019 equivalents.
 98% of the opcodes in this proposal that are in the IEEE754-2019 standard
 are present in the Khronos Extended Instruction Set.
 
-Power opcode encodings see [[power_trans_ops]]
-
 See
 <https://www.khronos.org/registry/spir-v/specs/unified1/OpenCL.ExtendedInstructionSet.100.html>
 and <https://ieeexplore.ieee.org/document/8766229>
@@ -250,6 +248,8 @@ software emulation
 | FACOSH   | inverse hyperbolic cos   | rd = acosh(rs1)         | Zfhyp |
 | FATANH   | inverse hyperbolic tan   | rd = atanh(rs1)         | Zfhyp |
 
+[[!inline pages="openpower/power_trans_ops" raw=yes ]]
+
 # Subsets
 
 The full set is based on the Khronos OpenCL opcodes. If implemented