1 # RUN: llvm-mc -triple mips-unknown-linux-gnu -mcpu=mips32r3 \
2 # RUN: -mattr=+micromips,+fp64 -show-encoding -show-inst %s \
5 abs.d $
f0, $
f12 # CHECK: abs.d $f0, $f12 # encoding: [0x54,0x0c,0x23,0x7b]
6 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FABS_D64_MM
7 abs.s $
f0, $
f12 # CHECK: abs.s $f0, $f12 # encoding: [0x54,0x0c,0x03,0x7b]
8 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FABS_S_MM
9 add.d $
f0, $
f2, $
f4 # CHECK: add.d $f0, $f2, $f4 # encoding: [0x54,0x82,0x01,0x30]
10 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FADD_D64_MM
11 cvt.d.s $
f0, $
f2 # CHECK: cvt.d.s $f0, $f2 # encoding: [0x54,0x02,0x13,0x7b]
12 # CHECK-NEXT: # <MCInst #{{[0-9]+}} CVT_D64_S_MM
13 cvt.d.w $
f0, $
f2 # CHECK: cvt.d.w $f0, $f2 # encoding: [0x54,0x02,0x33,0x7b]
14 # CHECK-NEXT: # <MCInst #{{[0-9]+}} CVT_D64_W_MM
15 cvt.s.d $
f0, $
f2 # CHECK: cvt.s.d $f0, $f2 # encoding: [0x54,0x02,0x1b,0x7b]
16 # CHECK-NEXT: # <MCInst #{{[0-9]+}} CVT_S_D64_MM
17 cvt.w.d $
f0, $
f2 # CHECK: cvt.w.d $f0, $f2 # encoding: [0x54,0x02,0x49,0x3b]
18 # CHECK-NEXT: # <MCInst #{{[0-9]+}} CVT_W_D64_MM
19 cvt.l.s $
f4, $
f2 # CHECK: cvt.l.s $f4, $f2 # encoding: [0x54,0x82,0x01,0x3b]
20 # CHECK-NEXT: # <MCInst #{{[0-9]+}} CVT_L_S_MM
21 cvt.l.d $
f4, $
f2 # CHECK: cvt.l.d $f4, $f2 # encoding: [0x54,0x82,0x41,0x3b]
22 # CHECK-NEXT: # <MCInst #{{[0-9]+}} CVT_L_D64_MM
23 div.d $
f0, $
f2, $
f4 # CHECK: div.d $f0, $f2, $f4 # encoding: [0x54,0x82,0x01,0xf0]
24 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FDIV_D64_MM
25 mfhc1 $
4, $
f0 # CHECK: mfhc1 $4, $f0 # encoding: [0x54,0x80,0x30,0x3b]
26 # CHECK-NEXT: # <MCInst #{{[0-9]+}} MFHC1_D64_MM
27 mov.d $
f0, $
f2 # CHECK: mov.d $f0, $f2 # encoding: [0x54,0x02,0x20,0x7b]
28 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FMOV_D64_MM
29 mthc1 $
4, $
f0 # CHECK: mthc1 $4, $f0 # encoding: [0x54,0x80,0x38,0x3b]
30 # CHECK-NEXT: # <MCInst #{{[0-9]+}} MTHC1_D64_MM
31 mul.d $
f0, $
f2, $
f4 # CHECK: mul.d $f0, $f2, $f4 # encoding: [0x54,0x82,0x01,0xb0]
32 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FMUL_D64_MM
33 neg.d $
f0, $
f2 # CHECK: neg.d $f0, $f2 # encoding: [0x54,0x02,0x2b,0x7b]
34 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FNEG_D64_MM
35 sqrt.d $
f0, $
f12 # CHECK: sqrt.d $f0, $f12 # encoding: [0x54,0x0c,0x4a,0x3b]
36 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FSQRT_D64_MM
37 sqrt.s $
f0, $
f12 # CHECK: sqrt.s $f0, $f12 # encoding: [0x54,0x0c,0x0a,0x3b]
38 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FSQRT_S_MM
39 sub.d $
f0, $
f2, $
f4 # CHECK: sub.d $f0, $f2, $f4 # encoding: [0x54,0x82,0x01,0x70]
40 # CHECK-NEXT: # <MCInst #{{[0-9]+}} FSUB_D64_MM