| # RUN: llvm-mc --disassemble %s -triple=mblaze-unknown-unknown | FileCheck %s |
| |
| ################################################################################ |
| # FPU instructions |
| ################################################################################ |
| |
| # CHECK: fadd r0, r1, r2 |
| 0x58 0x01 0x10 0x00 |
| |
| # CHECK: frsub r0, r1, r2 |
| 0x58 0x01 0x10 0x80 |
| |
| # CHECK: fmul r0, r1, r2 |
| 0x58 0x01 0x11 0x00 |
| |
| # CHECK: fdiv r0, r1, r2 |
| 0x58 0x01 0x11 0x80 |
| |
| # CHECK: fsqrt r0, r1 |
| 0x58 0x01 0x03 0x80 |
| |
| # CHECK: fint r0, r1 |
| 0x58 0x01 0x03 0x00 |
| |
| # CHECK: flt r0, r1 |
| 0x58 0x01 0x02 0x80 |
| |
| # CHECK: fcmp.un r0, r1, r2 |
| 0x58 0x01 0x12 0x00 |
| |
| # CHECK: fcmp.lt r0, r1, r2 |
| 0x58 0x01 0x12 0x10 |
| |
| # CHECK: fcmp.eq r0, r1, r2 |
| 0x58 0x01 0x12 0x20 |
| |
| # CHECK: fcmp.le r0, r1, r2 |
| 0x58 0x01 0x12 0x30 |
| |
| # CHECK: fcmp.gt r0, r1, r2 |
| 0x58 0x01 0x12 0x40 |
| |
| # CHECK: fcmp.ne r0, r1, r2 |
| 0x58 0x01 0x12 0x50 |
| |
| # CHECK: fcmp.ge r0, r1, r2 |
| 0x58 0x01 0x12 0x60 |