mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
890a8357af
llvm-svn: 119580
48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
# 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
|