diff options
| author | Alasdair Armstrong | 2020-09-27 02:10:52 +0100 |
|---|---|---|
| committer | GitHub | 2020-09-27 02:10:52 +0100 |
| commit | 882850db49cffef75e11eef8cf00364611e54e19 (patch) | |
| tree | 9601d70612d61b1144bc0c41106eee01e9beecf0 /test/latex/candperm.commands.tex.exp | |
| parent | b73aaf6d7209d693e295abcc499fa2f759cb877e (diff) | |
| parent | cd32009738e05e4eb7f7e0e25ccf700525a7badb (diff) | |
Merge pull request #96 from arichardson/add-latex-tests-and-allow-external-links
Add latex tests and allow external links
Diffstat (limited to 'test/latex/candperm.commands.tex.exp')
| -rw-r--r-- | test/latex/candperm.commands.tex.exp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/test/latex/candperm.commands.tex.exp b/test/latex/candperm.commands.tex.exp new file mode 100644 index 00000000..df253d71 --- /dev/null +++ b/test/latex/candperm.commands.tex.exp @@ -0,0 +1,60 @@ +\providecommand\saildoclabelled[2]{\phantomsection\label{#1}#2} + +\newcommand{\sailtypeast}{\saildoclabelled{typezast}{\saildoctype{}{\lstinputlisting[language=sail]{out/typezast6bb070d12e82e4887160cdfd016230c8.tex}}}} + +\newcommand{\sailvalexecute}{\saildoclabelled{zexecute}{\saildocval{}{\lstinputlisting[language=sail]{out/valzexecute33a689e3a631b9b905b85461d3814943.tex}}}} + +\newcommand{\sailfclCAndPermBrokenexecute}{\saildoclabelled{fclCAndPermBrokenzexecute}{\saildocfcl{Capability register \emph{cd} is replaced with the contents of capability +register \emph{cs1} with the \cperms{} field set to the bitwise-AND of +its previous value and bits 0 .. 10 of integer register \emph{rs2} +and the \cuperms{} field set to the bitwise and of its previous value +and bits \hyperref\hyperref[ztablezGpseudocodezDconstants]{\lstinline{table:pseudocode-constants}}{\emph{first\_uperm}} .. +\hyperref\hyperref[ztablezGpseudocodezDconstants]{\lstinline{table:pseudocode-constants}}{\emph{last\_uperm}} of \emph{rd}. + +}{\lstinputlisting[language=sail]{out/fclCAndPermBrokenzexecute33a689e3a631b9b905b85461d3814943.tex}}}} + +\newcommand{\sailfclCAndPermEscapedexecute}{\saildoclabelled{fclCAndPermEscapedzexecute}{\saildocfcl{Capability register \emph{cd} is replaced with the contents of capability +register \emph{cs1} with the \cperms{} field set to the bitwise-AND of +its previous value and bits 0 .. 10 of integer register \emph{rs2} +and the \cuperms{} field set to the bitwise and of its previous value +and bits \hyperref[table:pseudocode-constants]{\emph{first\_uperm}} .. +\hyperref[table:pseudocode-constants]{\emph{last\_uperm}} of \emph{rd}. + +}{\lstinputlisting[language=sail]{out/fclCAndPermEscapedzexecute33a689e3a631b9b905b85461d3814943.tex}}}} + +\newcommand{\sailfclCAndPermMarkdownexecute}{\saildoclabelled{fclCAndPermMarkdownzexecute}{\saildocfcl{Capability register \emph{cd} is replaced with the contents of capability +register \emph{cs1} with the \cperms{} field set to the bitwise-AND of +its previous value and bits 0 .. 10 of integer register \emph{rs2} +and the \cuperms{} field set to the bitwise and of its previous value +and bits \hyperref[table:pseudocode-constants]{*first_uperm*} .. +\hyperref[table:pseudocode-constants]{*last_uperm*} of \emph{rd}. + +}{\lstinputlisting[language=sail]{out/fclCAndPermMarkdownzexecute33a689e3a631b9b905b85461d3814943.tex}}}} + +\newcommand{\sailfclCAndPermMarkdownWithRefMacroexecute}{\saildoclabelled{fclCAndPermMarkdownWithRefMacrozexecute}{\saildocfcl{Capability register \emph{cd} is replaced with the contents of capability +register \emph{cs1} with the \cperms{} field set to the bitwise-AND of +its previous value and bits 0 .. 10 of integer register \emph{rs2} +and the \cuperms{} field set to the bitwise and of its previous value +and bits \firstUPerm{} .. \lastUPerm{} of \emph{rd}. + +}{\lstinputlisting[language=sail]{out/fclCAndPermMarkdownWithRefMacrozexecute33a689e3a631b9b905b85461d3814943.tex}}}} + + + +\newcommand{\sailval}[1]{ + \ifstrequal{#1}{execute}{\sailvalexecute}{}} + +\newcommand{\sailrefval}[2]{ + \ifstrequal{#1}{execute}{\hyperref[zexecute]{#2}}{}} + +\newcommand{\sailfn}[1]{ + } + +\newcommand{\sailreffn}[2]{ + } + +\newcommand{\sailtype}[1]{ + \ifstrequal{#1}{ast}{\sailtypeast}{}} + +\newcommand{\sailreftype}[2]{ + \ifstrequal{#1}{ast}{\hyperref[typezast]{#2}}{}} |
