1 #as: -march=loongson3a -mabi=o64
2 #objdump: -M reg-names=numeric -dr
3 #name: Loongson-3A tests
4 
5 .*:     file format .*
6 
7 Disassembly of section .text:
8 
9 [0-9a-f]+ <movz_insns>:
10 .*:	0064100b 	movn	\$2,\$3,\$4
11 
12 [0-9a-f]+ <integer_insns>:
13 .*:	70641010 	gsmult	\$2,\$3,\$4
14 .*:	70c72812 	gsmultu	\$5,\$6,\$7
15 .*:	712a4011 	gsdmult	\$8,\$9,\$10
16 .*:	718d5813 	gsdmultu	\$11,\$12,\$13
17 .*:	71f07014 	gsdiv	\$14,\$15,\$16
18 .*:	72538816 	gsdivu	\$17,\$18,\$19
19 .*:	72b6a015 	gsddiv	\$20,\$21,\$22
20 .*:	7319b817 	gsddivu	\$23,\$24,\$25
21 .*:	737cd01c 	gsmod	\$26,\$27,\$28
22 .*:	73dfe81e 	gsmodu	\$29,\$30,\$31
23 .*:	7064101d 	gsdmod	\$2,\$3,\$4
24 .*:	70c7281f 	gsdmodu	\$5,\$6,\$7
25 
26 [0-9a-f]+ <simd_insns>:
27 .*:	4b420802 	packsshb	\$f0,\$f1,\$f2
28 .*:	4b2520c2 	packsswh	\$f3,\$f4,\$f5
29 .*:	4b683982 	packushb	\$f6,\$f7,\$f8
30 .*:	4bcb5240 	paddb	\$f9,\$f10,\$f11
31 .*:	4b4e6b00 	paddh	\$f12,\$f13,\$f14
32 .*:	4b7183c0 	paddw	\$f15,\$f16,\$f17
33 .*:	4bf49c80 	paddd	\$f18,\$f19,\$f20
34 .*:	4b97b540 	paddsb	\$f21,\$f22,\$f23
35 .*:	4b1ace00 	paddsh	\$f24,\$f25,\$f26
36 .*:	4bbde6c0 	paddusb	\$f27,\$f28,\$f29
37 .*:	4b220800 	paddush	\$f0,\$f1,\$f2
38 .*:	4be520c2 	pandn	\$f3,\$f4,\$f5
39 .*:	4b283988 	pavgb	\$f6,\$f7,\$f8
40 .*:	4b0b5248 	pavgh	\$f9,\$f10,\$f11
41 .*:	4b8e6b09 	pcmpeqb	\$f12,\$f13,\$f14
42 .*:	4b5183c9 	pcmpeqh	\$f15,\$f16,\$f17
43 .*:	4b149c89 	pcmpeqw	\$f18,\$f19,\$f20
44 .*:	4bb7b549 	pcmpgtb	\$f21,\$f22,\$f23
45 .*:	4b7ace09 	pcmpgth	\$f24,\$f25,\$f26
46 .*:	4b3de6c9 	pcmpgtw	\$f27,\$f28,\$f29
47 .*:	4b42080e 	pextrh	\$f0,\$f1,\$f2
48 .*:	4b8520c3 	pinsrh_0	\$f3,\$f4,\$f5
49 .*:	4ba83983 	pinsrh_1	\$f6,\$f7,\$f8
50 .*:	4bcb5243 	pinsrh_2	\$f9,\$f10,\$f11
51 .*:	4bee6b03 	pinsrh_3	\$f12,\$f13,\$f14
52 .*:	4b7183ce 	pmaddhw	\$f15,\$f16,\$f17
53 .*:	4b549c88 	pmaxsh	\$f18,\$f19,\$f20
54 .*:	4b97b548 	pmaxub	\$f21,\$f22,\$f23
55 .*:	4b7ace08 	pminsh	\$f24,\$f25,\$f26
56 .*:	4bbde6c8 	pminub	\$f27,\$f28,\$f29
57 .*:	4ba0080f 	pmovmskb	\$f0,\$f1
58 .*:	4ba4188a 	pmulhuh	\$f2,\$f3,\$f4
59 .*:	4b67314a 	pmulhh	\$f5,\$f6,\$f7
60 .*:	4b4a4a0a 	pmullh	\$f8,\$f9,\$f10
61 .*:	4b8d62ca 	pmuluw	\$f11,\$f12,\$f13
62 .*:	4b307b8d 	pasubub	\$f14,\$f15,\$f16
63 .*:	4b80944f 	biadd	\$f17,\$f18
64 .*:	4b15a4c2 	pshufh	\$f19,\$f20,\$f21
65 .*:	4b38bd8a 	psllh	\$f22,\$f23,\$f24
66 .*:	4b1bd64a 	psllw	\$f25,\$f26,\$f27
67 .*:	4b7eef0b 	psrah	\$f28,\$f29,\$f30
68 .*:	4b42080b 	psraw	\$f0,\$f1,\$f2
69 .*:	4b2520cb 	psrlh	\$f3,\$f4,\$f5
70 .*:	4b08398b 	psrlw	\$f6,\$f7,\$f8
71 .*:	4bcb5241 	psubb	\$f9,\$f10,\$f11
72 .*:	4b4e6b01 	psubh	\$f12,\$f13,\$f14
73 .*:	4b7183c1 	psubw	\$f15,\$f16,\$f17
74 .*:	4bf49c81 	psubd	\$f18,\$f19,\$f20
75 .*:	4b97b541 	psubsb	\$f21,\$f22,\$f23
76 .*:	4b1ace01 	psubsh	\$f24,\$f25,\$f26
77 .*:	4bbde6c1 	psubusb	\$f27,\$f28,\$f29
78 .*:	4b220801 	psubush	\$f0,\$f1,\$f2
79 .*:	4b6520c3 	punpckhbh	\$f3,\$f4,\$f5
80 .*:	4b283983 	punpckhhw	\$f6,\$f7,\$f8
81 .*:	4bab524b 	punpckhwd	\$f9,\$f10,\$f11
82 .*:	4b4e6b03 	punpcklbh	\$f12,\$f13,\$f14
83 .*:	4b1183c3 	punpcklhw	\$f15,\$f16,\$f17
84 .*:	4b949c8b 	punpcklwd	\$f18,\$f19,\$f20
85 
86 [0-9a-f]+ <fixed_point_insns>:
87 .*:	4b42080c 	add	\$f0,\$f1,\$f2
88 .*:	4b0520cc 	addu	\$f3,\$f4,\$f5
89 .*:	4b68398c 	dadd	\$f6,\$f7,\$f8
90 .*:	4b4b524d 	sub	\$f9,\$f10,\$f11
91 .*:	4b0e6b0d 	subu	\$f12,\$f13,\$f14
92 .*:	4b7183cd 	dsub	\$f15,\$f16,\$f17
93 .*:	4b349c8c 	or	\$f18,\$f19,\$f20
94 .*:	4b17b54e 	sll	\$f21,\$f22,\$f23
95 .*:	4b3ace0e 	dsll	\$f24,\$f25,\$f26
96 .*:	4b9de6c2 	xor	\$f27,\$f28,\$f29
97 .*:	4ba20802 	nor	\$f0,\$f1,\$f2
98 .*:	4bc520c2 	and	\$f3,\$f4,\$f5
99 .*:	4b08398f 	srl	\$f6,\$f7,\$f8
100 .*:	4b2b524f 	dsrl	\$f9,\$f10,\$f11
101 .*:	4b4e6b0f 	sra	\$f12,\$f13,\$f14
102 .*:	4b7183cf 	dsra	\$f15,\$f16,\$f17
103 .*:	4b93900c 	sequ	\$f18,\$f19
104 .*:	4b95a00d 	sltu	\$f20,\$f21
105 .*:	4b97b00e 	sleu	\$f22,\$f23
106 .*:	4bb9c00c 	seq	\$f24,\$f25
107 .*:	4bbbd00d 	slt	\$f26,\$f27
108 .*:	4bbde00e 	sle	\$f28,\$f29
109 #pass
110 
111 
112