# QPU: Flags set by instructions

Table 1. Flags set by add instructions
| | Flags | | |

No. | Insn. |
Z ^{1} |
N ^{2} |
C ^{3} |
Input is float ^{4} |
Output is float ^{4} |

0 | nop | | | | | |

1 | fadd | y | y | | y | y |

2 | fsub | y | y | | y | y |

3 | fmin | y | y | | y | y |

4 | fmax | y | y | | y | y |

5 | fminabs | y | n | | y | y |

6 | fmaxabs | y | n | | y | y |

7 | ftoi | y | y | | n | y |

8 | itof | y | y | | y | n |

9 | | | | | | |

10 | | | | | | |

11 | | | | | | |

12 | add | y | y | y | n | n |

13 | sub | y | y | y | n | n |

14 | shr | y | y | y | n | n |

15 | asr | y | y | y | n | n |

16 | ror | y | y | n | n | n |

17 | shl | y | y | y | n | n |

18 | min | y | y | y ^{5} | n | n |

19 | max | y | y | y ^{5} | n | n |

20 | and | y | y | n | n | n |

21 | or | y | y | n | n | n |

22 | xor | y | y | n | n | n |

23 | not | y | y | n | n | n |

24 | clz | y | y | n | n | n |

25 | | | | | | |

26 | | | | | | |

27 | | | | | | |

28 | | | | | | |

29 | | | | | | |

30 | v8adds | y | y | | n | n |

31 | v8subs | y | y | | n | n |

Table 2. Flags set by mul instructions
| | Flags | | |

No. | Insn. |
Z ^{1} |
N ^{2} |
C ^{3} |
Input is float ^{4} |
Output is float ^{4} |

0 | nop | | | | | |

1 | fmul | | | | | |

2 | mul24 | | | | | |

3 | v8muld | | | | | |

4 | v8min | | | | | |

5 | v8max | | | | | |

6 | v8adds | | | | | |

7 | v8subs | | | | | |

^{1. Set if out[31:0] are all 0.}

^{2. Set if out[31] is set.}

^{3. Normally, set if at least one of the 2 invisible bits
next to the significant bits, out[32] and out[-1],
is set.}

^{4. Related to packing and unpacking.
See the correnponding tables on the manual.}

^{5. Set if $add\_a > add\_b$.}

## Copyright notice

© 2017 Yukimasa Sugizaki. All rights reserved.

This work is licensed under a Creative
Commons Attribution-NonCommercial-ShareAlike 4.0 International
License.