1# RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips,fp64 \
2# RUN:   -show-inst -mcpu=mips32r2 | FileCheck -check-prefix=CHECK-EL %s
3# RUN: llvm-mc %s -triple=mips -show-encoding -mattr=micromips,fp64 \
4# RUN:   -show-inst -mcpu=mips32r2 | FileCheck -check-prefix=CHECK-EB %s
5# Check that the assembler can handle the documented syntax
6# for fpu instructions
7#------------------------------------------------------------------------------
8# FPU Instructions
9#------------------------------------------------------------------------------
10# Little endian
11#------------------------------------------------------------------------------
12# CHECK-EL: luxc1      $f2, $4($6)      # encoding: [0x86,0x54,0x48,0x11]
13# CHECK-EL-NEXT:                        # <MCInst #{{[0-9]+}} LUXC1_MM
14# CHECK-EL: suxc1      $f2, $4($6)      # encoding: [0x86,0x54,0x88,0x11]
15# CHECK-EL-NEXT:                        # <MCInst #{{[0-9]+}} SUXC1_MM
16#------------------------------------------------------------------------------
17# Big endian
18#------------------------------------------------------------------------------
19# CHECK-EB: luxc1 $f2, $4($6)           # encoding: [0x54,0x86,0x11,0x48]
20# CHECK-EB-NEXT:                        # <MCInst #{{[0-9]+}} LUXC1_MM
21# CHECK-EB: suxc1 $f2, $4($6)           # encoding: [0x54,0x86,0x11,0x88]
22# CHECK-EB-NEXT:                        # <MCInst #{{[0-9]+}} SUXC1_MM
23
24    luxc1      $f2, $4($6)
25    suxc1      $f2, $4($6)
26
27