| /* Copyright lowRISC contributors. */ |
| /* Licensed under the Apache License, Version 2.0, see LICENSE for details. */ |
| /* SPDX-License-Identifier: Apache-2.0 */ |
| An example of the pseudo-operations supported by the OTBN ISA |
| /* NOP is a no-op, and expands to addi x0, x0, 0 */ |
| /* RET is a return and expands to jalr x0, x1, 0 */ |
| /* LI is a bit more complicated. With a small immediate, it turns |
| /* With a big immediate which happens to have nothing set in the |
| lower 20 bits, it turns into just a LUI */ |
| /* With a big immediate in general, we need 2 instructions. |
| Firstly, a LUI to set up the upper bits, then an ADDI to sort out |