\section{Delay Slot Filling} \subsection{ Overview } Superscalar architectures such as the Sparc, MIPS, and PA-RISC contain delayed branch and/or load instructions. Delay slot filling is necessary task of the back end to keep the instruction pipelines busy. To accomodate the intricate semantics of branch delay slot in various architectures, MLRISC uses the following very general framework for dealing with delayed instructions. \begin{description} \item[Instruction representation] To make it easy to deal with instruction with delay slot, MLRISC allow the following extensions to instruction representations. \begin{itemize} \item Instructions with delay slot may have a \begin{color}{#aa0000}nop\end{color} flag. When this flag is true the delay slot is assumed to be filled with a NOP instruction. \item Instructions with delay slots that can be nullified may have a \begin{color}{#aa0000}nullified\end{color} flag. When this flag is true the branch delay slot is assumed to be nullified. \end{itemize} \item[Nullification semantics] Unfortunately, nullification semantics in architectures vary. In general, MLRISC allows the following additional nullification characteristics to be specified. \begin{itemize} \item Nullification can be specified as illegal; this is needed because some instructions can not be nullified \item When nullification is enabled, the semantics of the delay slot instruction may depend on the direction of the branch, and whether a conditional test succeeds. \item Certain class of instructions may be declared to be illegal to fit into certain class of delay slots. \end{itemize} \end{description} For example, conditional branch instructions on the Sparc are defined as follows: \begin{verbatim} Bicc of {b:branch, a:bool, label:Label.label, nop:bool} asm: ``b\t