mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
e7c682b543
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119580 91177308-0d34-0410-b5e6-96231b3b80d8
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
|