1 # RUN: llvm-mc --triple=loongarch32 --mattr=+f --loongarch-numeric-reg %s \
3 # RUN: llvm-mc --triple=loongarch32 --mattr=+f -M numeric %s \
5 # RUN: llvm-mc --triple=loongarch32 --mattr=+f --filetype=obj %s -o %t.32
6 # RUN: llvm-objdump -d -M numeric %t.32 | FileCheck %s
7 # RUN: llvm-mc --triple=loongarch64 --mattr=+f --loongarch-numeric-reg %s \
9 # RUN: llvm-mc --triple=loongarch64 --mattr=+f -M numeric %s \
11 # RUN: llvm-mc --triple=loongarch64 --mattr=+f --filetype=obj %s -o %t.64
12 # RUN: llvm-objdump -d -M numeric %t.64 | FileCheck %s
31 # CHECK: addi.w $r0, $r1, 1
32 # CHECK-NEXT: addi.w $r2, $r3, 1
33 # CHECK-NEXT: addi.w $r4, $r5, 1
34 # CHECK-NEXT: addi.w $r6, $r7, 1
35 # CHECK-NEXT: addi.w $r8, $r9, 1
36 # CHECK-NEXT: addi.w $r10, $r11, 1
37 # CHECK-NEXT: addi.w $r12, $r13, 1
38 # CHECK-NEXT: addi.w $r14, $r15, 1
39 # CHECK-NEXT: addi.w $r16, $r17, 1
40 # CHECK-NEXT: addi.w $r18, $r19, 1
41 # CHECK-NEXT: addi.w $r20, $r21, 1
42 # CHECK-NEXT: addi.w $r22, $r23, 1
43 # CHECK-NEXT: addi.w $r24, $r25, 1
44 # CHECK-NEXT: addi.w $r26, $r27, 1
45 # CHECK-NEXT: addi.w $r28, $r29, 1
46 # CHECK-NEXT: addi.w $r30, $r31, 1
48 fmadd.s $fa0
, $fa1
, $fa2
, $fa3
49 fmadd.s $fa4
, $fa5
, $fa6
, $fa7
50 fmadd.s $ft0
, $ft1
, $ft2
, $ft3
51 fmadd.s $ft4
, $ft5
, $ft6
, $ft7
52 fmadd.s $ft8
, $ft9
, $ft10
, $ft11
53 fmadd.s $ft12
, $ft13
, $ft14
, $ft15
54 fmadd.s $fs0
, $fs1
, $fs2
, $fs3
55 fmadd.s $fs4
, $fs5
, $fs6
, $fs7
57 # CHECK: fmadd.s $f0, $f1, $f2, $f3
58 # CHECK-NEXT: fmadd.s $f4, $f5, $f6, $f7
59 # CHECK-NEXT: fmadd.s $f8, $f9, $f10, $f11
60 # CHECK-NEXT: fmadd.s $f12, $f13, $f14, $f15
61 # CHECK-NEXT: fmadd.s $f16, $f17, $f18, $f19
62 # CHECK-NEXT: fmadd.s $f20, $f21, $f22, $f23
63 # CHECK-NEXT: fmadd.s $f24, $f25, $f26, $f27
64 # CHECK-NEXT: fmadd.s $f28, $f29, $f30, $f31