# RUN: llvm-mc %s -triple=mipsel -show-encoding -show-inst -mattr=micromips \ # RUN: -mcpu=mips32r2 | FileCheck -check-prefix=CHECK-EL %s # RUN: llvm-mc %s -triple=mips -show-encoding -show-inst -mattr=micromips \ # RUN: -mcpu=mips32r2 | FileCheck -check-prefix=CHECK-EB %s # Check that the assembler can handle the documented syntax # for fpu instructions #------------------------------------------------------------------------------ # FPU Instructions #------------------------------------------------------------------------------ # Little endian #------------------------------------------------------------------------------ # CHECK-EL: add.s $f4, $f6, $f8 # encoding: [0x06,0x55,0x30,0x20] # CHECK-EL: add.d $f4, $f6, $f8 # encoding: [0x06,0x55,0x30,0x21] # CHECK-EL: div.s $f4, $f6, $f8 # encoding: [0x06,0x55,0xf0,0x20] # CHECK-EL: div.d $f4, $f6, $f8 # encoding: [0x06,0x55,0xf0,0x21] # CHECK-EL: mul.s $f4, $f6, $f8 # encoding: [0x06,0x55,0xb0,0x20] # CHECK-EL: mul.d $f4, $f6, $f8 # encoding: [0x06,0x55,0xb0,0x21] # CHECK-EL: sub.s $f4, $f6, $f8 # encoding: [0x06,0x55,0x70,0x20] # CHECK-EL: sub.d $f4, $f6, $f8 # encoding: [0x06,0x55,0x70,0x21] # CHECK-EL: lwc1 $f2, 4($6) # encoding: [0x46,0x9c,0x04,0x00] # CHECK-EL: ldc1 $f2, 4($6) # encoding: [0x46,0xbc,0x04,0x00] # CHECK-EL: swc1 $f2, 4($6) # encoding: [0x46,0x98,0x04,0x00] # CHECK-EL: sdc1 $f2, 4($6) # encoding: [0x46,0xb8,0x04,0x00] # CHECK-EL: bc1f 1332 # encoding: [0x80,0x43,0x9a,0x02] # CHECK-EL: nop # encoding: [0x00,0x00,0x00,0x00] # CHECK-EL: bc1t 1332 # encoding: [0xa0,0x43,0x9a,0x02] # CHECK-EL: nop # encoding: [0x00,0x00,0x00,0x00] # CHECK-EL: ceil.w.s $f6, $f8 # encoding: [0xc8,0x54,0x3b,0x1b] # CHECK-EL-NEXT: #