27 lines · plain
1# RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips,fp64 \2# RUN: -show-inst -mcpu=mips32r2 | FileCheck -check-prefix=CHECK-EL %s3# RUN: llvm-mc %s -triple=mips -show-encoding -mattr=micromips,fp64 \4# RUN: -show-inst -mcpu=mips32r2 | FileCheck -check-prefix=CHECK-EB %s5# Check that the assembler can handle the documented syntax6# for fpu instructions7#------------------------------------------------------------------------------8# FPU Instructions9#------------------------------------------------------------------------------10# Little endian11#------------------------------------------------------------------------------12# CHECK-EL: luxc1 $f2, $4($6) # encoding: [0x86,0x54,0x48,0x11]13# CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} LUXC1_MM14# CHECK-EL: suxc1 $f2, $4($6) # encoding: [0x86,0x54,0x88,0x11]15# CHECK-EL-NEXT: # <MCInst #{{[0-9]+}} SUXC1_MM16#------------------------------------------------------------------------------17# Big endian18#------------------------------------------------------------------------------19# CHECK-EB: luxc1 $f2, $4($6) # encoding: [0x54,0x86,0x11,0x48]20# CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} LUXC1_MM21# CHECK-EB: suxc1 $f2, $4($6) # encoding: [0x54,0x86,0x11,0x88]22# CHECK-EB-NEXT: # <MCInst #{{[0-9]+}} SUXC1_MM23 24 luxc1 $f2, $4($6)25 suxc1 $f2, $4($6)26 27