• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:check

1 ; Test vector replicates, v4i32 version.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test a byte-granularity replicate with the lowest useful value.
7 ; CHECK-LABEL: f1:
8 ; CHECK: vrepib %v24, 1
9 ; CHECK: br %r14
13 ; Test a byte-granularity replicate with an arbitrary value.
15 ; CHECK-LABEL: f2:
16 ; CHECK: vrepib %v24, -55
17 ; CHECK: br %r14
21 ; Test a byte-granularity replicate with the highest useful value.
23 ; CHECK-LABEL: f3:
24 ; CHECK: vrepib %v24, -2
25 ; CHECK: br %r14
29 ; Test a halfword-granularity replicate with the lowest useful value.
31 ; CHECK-LABEL: f4:
32 ; CHECK: vrepih %v24, 1
33 ; CHECK: br %r14
37 ; Test a halfword-granularity replicate with an arbitrary value.
39 ; CHECK-LABEL: f5:
40 ; CHECK: vrepih %v24, 25650
41 ; CHECK: br %r14
45 ; Test a halfword-granularity replicate with the highest useful value.
47 ; CHECK-LABEL: f6:
48 ; CHECK: vrepih %v24, -2
49 ; CHECK: br %r14
50 ret <4 x i32> <i32 -65538, i32 -65538, i32 -65538, i32 -65538>
53 ; Test a word-granularity replicate with the lowest useful positive value.
55 ; CHECK-LABEL: f7:
56 ; CHECK: vrepif %v24, 1
57 ; CHECK: br %r14
61 ; Test a word-granularity replicate with the highest in-range value.
63 ; CHECK-LABEL: f8:
64 ; CHECK: vrepif %v24, 32767
65 ; CHECK: br %r14
69 ; Test a word-granularity replicate with the next highest value.
72 ; CHECK-LABEL: f9:
73 ; CHECK-NOT: vrepif
74 ; CHECK: br %r14
78 ; Test a word-granularity replicate with the lowest in-range value.
80 ; CHECK-LABEL: f10:
81 ; CHECK: vrepif %v24, -32768
82 ; CHECK: br %r14
83 ret <4 x i32> <i32 -32768, i32 -32768, i32 -32768, i32 -32768>
86 ; Test a word-granularity replicate with the next lowest value.
89 ; CHECK-LABEL: f11:
90 ; CHECK-NOT: vrepif
91 ; CHECK: br %r14
92 ret <4 x i32> <i32 -32769, i32 -32769, i32 -32769, i32 -32769>
95 ; Test a word-granularity replicate with the highest useful negative value.
97 ; CHECK-LABEL: f12:
98 ; CHECK: vrepif %v24, -2
99 ; CHECK: br %r14
100 ret <4 x i32> <i32 -2, i32 -2, i32 -2, i32 -2>
103 ; Test a doubleword-granularity replicate with the lowest useful positive
106 ; CHECK-LABEL: f13:
107 ; CHECK: vrepig %v24, 1
108 ; CHECK: br %r14
112 ; Test a doubleword-granularity replicate with the highest in-range value.
114 ; CHECK-LABEL: f14:
115 ; CHECK: vrepig %v24, 32767
116 ; CHECK: br %r14
120 ; Test a doubleword-granularity replicate with the next highest value.
123 ; CHECK-LABEL: f15:
124 ; CHECK-NOT: vrepig
125 ; CHECK: br %r14
129 ; Test a doubleword-granularity replicate with the lowest in-range value.
131 ; CHECK-LABEL: f16:
132 ; CHECK: vrepig %v24, -32768
133 ; CHECK: br %r14
134 ret <4 x i32> <i32 -1, i32 -32768, i32 -1, i32 -32768>
137 ; Test a doubleword-granularity replicate with the next lowest value.
140 ; CHECK-LABEL: f17:
141 ; CHECK-NOT: vrepig
142 ; CHECK: br %r14
143 ret <4 x i32> <i32 -1, i32 -32769, i32 -1, i32 -32769>
146 ; Test a doubleword-granularity replicate with the highest useful negative
149 ; CHECK-LABEL: f18:
150 ; CHECK: vrepig %v24, -2
151 ; CHECK: br %r14
152 ret <4 x i32> <i32 -1, i32 -2, i32 -1, i32 -2>
157 ; CHECK-LABEL: f19:
158 ; CHECK: vrepig %v24, 32767
159 ; CHECK: br %r14
163 ; Repeat f18 with undefs optimistically treated as -2, -1.
165 ; CHECK-LABEL: f20:
166 ; CHECK: vrepig %v24, -2
167 ; CHECK: br %r14
168 ret <4 x i32> <i32 -1, i32 undef, i32 undef, i32 -2>