Home | History | Annotate | Download | only in MBlaze
      1 # RUN: llvm-mc --disassemble %s -triple=mblaze-unknown-unknown | FileCheck %s
      2 
      3 ################################################################################
      4 # FPU instructions
      5 ################################################################################
      6 
      7 # CHECK:    fadd         r0, r1, r2
      8 0x58 0x01 0x10 0x00
      9 
     10 # CHECK:    frsub        r0, r1, r2
     11 0x58 0x01 0x10 0x80
     12 
     13 # CHECK:    fmul         r0, r1, r2
     14 0x58 0x01 0x11 0x00
     15 
     16 # CHECK:    fdiv         r0, r1, r2
     17 0x58 0x01 0x11 0x80
     18 
     19 # CHECK:    fsqrt        r0, r1
     20 0x58 0x01 0x03 0x80
     21 
     22 # CHECK:    fint         r0, r1
     23 0x58 0x01 0x03 0x00
     24 
     25 # CHECK:    flt          r0, r1
     26 0x58 0x01 0x02 0x80
     27 
     28 # CHECK:    fcmp.un     r0, r1, r2
     29 0x58 0x01 0x12 0x00
     30 
     31 # CHECK:    fcmp.lt     r0, r1, r2
     32 0x58 0x01 0x12 0x10
     33 
     34 # CHECK:    fcmp.eq     r0, r1, r2
     35 0x58 0x01 0x12 0x20
     36 
     37 # CHECK:    fcmp.le     r0, r1, r2
     38 0x58 0x01 0x12 0x30
     39 
     40 # CHECK:    fcmp.gt     r0, r1, r2
     41 0x58 0x01 0x12 0x40
     42 
     43 # CHECK:    fcmp.ne     r0, r1, r2
     44 0x58 0x01 0x12 0x50
     45 
     46 # CHECK:    fcmp.ge     r0, r1, r2
     47 0x58 0x01 0x12 0x60
     48