Skip to content

Commit 90b059d

Browse files
committedApr 30, 2015
[mips] Add missing signext attributes to MSA basic operations tests. NFC.
Summary: This doesn't make much difference to MIPS32, but it will simplify a MIPS64r6 bugfix which will follow shortly by removing unnecessary sign-extension of parameters. Reviewers: vkalintiris Reviewed By: vkalintiris Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9338 llvm-svn: 236216
1 parent 0c2ab37 commit 90b059d

File tree

1 file changed

+20
-28
lines changed

1 file changed

+20
-28
lines changed
 

‎llvm/test/CodeGen/Mips/msa/basic_operations.ll

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ define void @const_v2i64() nounwind {
137137
; MIPS32-AE: .size const_v2i64
138138
}
139139

140-
define void @nonconst_v16i8(i8 %a, i8 %b, i8 %c, i8 %d, i8 %e, i8 %f, i8 %g, i8 %h) nounwind {
140+
define void @nonconst_v16i8(i8 signext %a, i8 signext %b, i8 signext %c, i8 signext %d, i8 signext %e, i8 signext %f, i8 signext %g, i8 signext %h) nounwind {
141141
; MIPS32-AE-LABEL: nonconst_v16i8:
142142

143143
%1 = insertelement <16 x i8> undef, i8 %a, i32 0
@@ -160,17 +160,13 @@ define void @nonconst_v16i8(i8 %a, i8 %b, i8 %c, i8 %d, i8 %e, i8 %f, i8 %g, i8
160160
; MIPS32-AE-DAG: insert.b [[R1]][1], $5
161161
; MIPS32-AE-DAG: insert.b [[R1]][2], $6
162162
; MIPS32-AE-DAG: insert.b [[R1]][3], $7
163-
; MIPS32-BE-DAG: lbu [[R2:\$[0-9]+]], 19($sp)
164-
; MIPS32-LE-DAG: lbu [[R2:\$[0-9]+]], 16($sp)
163+
; MIPS32-AE-DAG: lw [[R2:\$[0-9]+]], 16($sp)
165164
; MIPS32-AE-DAG: insert.b [[R1]][4], [[R2]]
166-
; MIPS32-BE-DAG: lbu [[R3:\$[0-9]+]], 23($sp)
167-
; MIPS32-LE-DAG: lbu [[R3:\$[0-9]+]], 20($sp)
165+
; MIPS32-AE-DAG: lw [[R3:\$[0-9]+]], 20($sp)
168166
; MIPS32-AE-DAG: insert.b [[R1]][5], [[R3]]
169-
; MIPS32-BE-DAG: lbu [[R4:\$[0-9]+]], 27($sp)
170-
; MIPS32-LE-DAG: lbu [[R4:\$[0-9]+]], 24($sp)
167+
; MIPS32-AE-DAG: lw [[R4:\$[0-9]+]], 24($sp)
171168
; MIPS32-AE-DAG: insert.b [[R1]][6], [[R4]]
172-
; MIPS32-BE-DAG: lbu [[R5:\$[0-9]+]], 31($sp)
173-
; MIPS32-LE-DAG: lbu [[R5:\$[0-9]+]], 28($sp)
169+
; MIPS32-AE-DAG: lw [[R5:\$[0-9]+]], 28($sp)
174170
; MIPS32-AE-DAG: insert.b [[R1]][7], [[R5]]
175171
; MIPS32-AE-DAG: insert.b [[R1]][8], [[R5]]
176172
; MIPS32-AE-DAG: insert.b [[R1]][9], [[R5]]
@@ -187,7 +183,7 @@ define void @nonconst_v16i8(i8 %a, i8 %b, i8 %c, i8 %d, i8 %e, i8 %f, i8 %g, i8
187183
; MIPS32-AE: .size nonconst_v16i8
188184
}
189185

190-
define void @nonconst_v8i16(i16 %a, i16 %b, i16 %c, i16 %d, i16 %e, i16 %f, i16 %g, i16 %h) nounwind {
186+
define void @nonconst_v8i16(i16 signext %a, i16 signext %b, i16 signext %c, i16 signext %d, i16 signext %e, i16 signext %f, i16 signext %g, i16 signext %h) nounwind {
191187
; MIPS32-AE-LABEL: nonconst_v8i16:
192188

193189
%1 = insertelement <8 x i16> undef, i16 %a, i32 0
@@ -202,17 +198,13 @@ define void @nonconst_v8i16(i16 %a, i16 %b, i16 %c, i16 %d, i16 %e, i16 %f, i16
202198
; MIPS32-AE-DAG: insert.h [[R1]][1], $5
203199
; MIPS32-AE-DAG: insert.h [[R1]][2], $6
204200
; MIPS32-AE-DAG: insert.h [[R1]][3], $7
205-
; MIPS32-BE-DAG: lhu [[R2:\$[0-9]+]], 18($sp)
206-
; MIPS32-LE-DAG: lhu [[R2:\$[0-9]+]], 16($sp)
201+
; MIPS32-AE-DAG: lw [[R2:\$[0-9]+]], 16($sp)
207202
; MIPS32-AE-DAG: insert.h [[R1]][4], [[R2]]
208-
; MIPS32-BE-DAG: lhu [[R2:\$[0-9]+]], 22($sp)
209-
; MIPS32-LE-DAG: lhu [[R2:\$[0-9]+]], 20($sp)
203+
; MIPS32-AE-DAG: lw [[R2:\$[0-9]+]], 20($sp)
210204
; MIPS32-AE-DAG: insert.h [[R1]][5], [[R2]]
211-
; MIPS32-BE-DAG: lhu [[R2:\$[0-9]+]], 26($sp)
212-
; MIPS32-LE-DAG: lhu [[R2:\$[0-9]+]], 24($sp)
205+
; MIPS32-AE-DAG: lw [[R2:\$[0-9]+]], 24($sp)
213206
; MIPS32-AE-DAG: insert.h [[R1]][6], [[R2]]
214-
; MIPS32-BE-DAG: lhu [[R2:\$[0-9]+]], 30($sp)
215-
; MIPS32-LE-DAG: lhu [[R2:\$[0-9]+]], 28($sp)
207+
; MIPS32-AE-DAG: lw [[R2:\$[0-9]+]], 28($sp)
216208
; MIPS32-AE-DAG: insert.h [[R1]][7], [[R2]]
217209

218210
store volatile <8 x i16> %8, <8 x i16>*@v8i16
@@ -221,7 +213,7 @@ define void @nonconst_v8i16(i16 %a, i16 %b, i16 %c, i16 %d, i16 %e, i16 %f, i16
221213
; MIPS32-AE: .size nonconst_v8i16
222214
}
223215

224-
define void @nonconst_v4i32(i32 %a, i32 %b, i32 %c, i32 %d) nounwind {
216+
define void @nonconst_v4i32(i32 signext %a, i32 signext %b, i32 signext %c, i32 signext %d) nounwind {
225217
; MIPS32-AE-LABEL: nonconst_v4i32:
226218

227219
%1 = insertelement <4 x i32> undef, i32 %a, i32 0
@@ -239,7 +231,7 @@ define void @nonconst_v4i32(i32 %a, i32 %b, i32 %c, i32 %d) nounwind {
239231
; MIPS32-AE: .size nonconst_v4i32
240232
}
241233

242-
define void @nonconst_v2i64(i64 %a, i64 %b) nounwind {
234+
define void @nonconst_v2i64(i64 signext %a, i64 signext %b) nounwind {
243235
; MIPS32-AE-LABEL: nonconst_v2i64:
244236

245237
%1 = insertelement <2 x i64> undef, i64 %a, i32 0
@@ -590,7 +582,7 @@ define i64 @extract_zext_v2i64_vidx() nounwind {
590582
; MIPS32-AE: .size extract_zext_v2i64_vidx
591583
}
592584

593-
define void @insert_v16i8(i32 %a) nounwind {
585+
define void @insert_v16i8(i32 signext %a) nounwind {
594586
; MIPS32-AE-LABEL: insert_v16i8:
595587

596588
%1 = load <16 x i8>, <16 x i8>* @v16i8
@@ -612,7 +604,7 @@ define void @insert_v16i8(i32 %a) nounwind {
612604
; MIPS32-AE: .size insert_v16i8
613605
}
614606

615-
define void @insert_v8i16(i32 %a) nounwind {
607+
define void @insert_v8i16(i32 signext %a) nounwind {
616608
; MIPS32-AE-LABEL: insert_v8i16:
617609

618610
%1 = load <8 x i16>, <8 x i16>* @v8i16
@@ -634,7 +626,7 @@ define void @insert_v8i16(i32 %a) nounwind {
634626
; MIPS32-AE: .size insert_v8i16
635627
}
636628

637-
define void @insert_v4i32(i32 %a) nounwind {
629+
define void @insert_v4i32(i32 signext %a) nounwind {
638630
; MIPS32-AE-LABEL: insert_v4i32:
639631

640632
%1 = load <4 x i32>, <4 x i32>* @v4i32
@@ -653,7 +645,7 @@ define void @insert_v4i32(i32 %a) nounwind {
653645
; MIPS32-AE: .size insert_v4i32
654646
}
655647

656-
define void @insert_v2i64(i64 %a) nounwind {
648+
define void @insert_v2i64(i64 signext %a) nounwind {
657649
; MIPS32-AE-LABEL: insert_v2i64:
658650

659651
%1 = load <2 x i64>, <2 x i64>* @v2i64
@@ -673,7 +665,7 @@ define void @insert_v2i64(i64 %a) nounwind {
673665
; MIPS32-AE: .size insert_v2i64
674666
}
675667

676-
define void @insert_v16i8_vidx(i32 %a) nounwind {
668+
define void @insert_v16i8_vidx(i32 signext %a) nounwind {
677669
; MIPS32-AE: insert_v16i8_vidx:
678670

679671
%1 = load <16 x i8>, <16 x i8>* @v16i8
@@ -702,7 +694,7 @@ define void @insert_v16i8_vidx(i32 %a) nounwind {
702694
; MIPS32-AE: .size insert_v16i8_vidx
703695
}
704696

705-
define void @insert_v8i16_vidx(i32 %a) nounwind {
697+
define void @insert_v8i16_vidx(i32 signext %a) nounwind {
706698
; MIPS32-AE: insert_v8i16_vidx:
707699

708700
%1 = load <8 x i16>, <8 x i16>* @v8i16
@@ -732,7 +724,7 @@ define void @insert_v8i16_vidx(i32 %a) nounwind {
732724
; MIPS32-AE: .size insert_v8i16_vidx
733725
}
734726

735-
define void @insert_v4i32_vidx(i32 %a) nounwind {
727+
define void @insert_v4i32_vidx(i32 signext %a) nounwind {
736728
; MIPS32-AE: insert_v4i32_vidx:
737729

738730
%1 = load <4 x i32>, <4 x i32>* @v4i32
@@ -759,7 +751,7 @@ define void @insert_v4i32_vidx(i32 %a) nounwind {
759751
; MIPS32-AE: .size insert_v4i32_vidx
760752
}
761753

762-
define void @insert_v2i64_vidx(i64 %a) nounwind {
754+
define void @insert_v2i64_vidx(i64 signext %a) nounwind {
763755
; MIPS32-AE: insert_v2i64_vidx:
764756

765757
%1 = load <2 x i64>, <2 x i64>* @v2i64

0 commit comments

Comments
 (0)