hws/hw09.tex
changeset 703 57b3ae5ba5e2
parent 649 e83afb44f276
child 705 bfc8703b1527
equal deleted inserted replaced
702:39e21a33ffb0 703:57b3ae5ba5e2
    43 ifeq label
    43 ifeq label
    44 if_icmpge label
    44 if_icmpge label
    45 \end{lstlisting}
    45 \end{lstlisting}
    46 
    46 
    47 
    47 
    48 \item What does the following LLVM function calculate. Give the
    48 \item What does the following LLVM function calculate? Give the
    49   expression 
    49   corresponding arithmetic expression .
    50 
    50 
    51 \begin{lstlisting}[language=LLVM,numbers=none]  
    51 \begin{lstlisting}[language=LLVM,numbers=none]  
    52 define i32 @foo(i32 %a, i32 %b)  {
    52 define i32 @foo(i32 %a, i32 %b)  {
    53   %1 = mul i32 %a, %a
    53   %1 = mul i32 %a, %a
    54   %2 = mul i32 %a, 2
    54   %2 = mul i32 %a, 2