• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
3 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -verify -verify-ignore-unexpected=error %s
4 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -verify=overload -verify-ignore-unexpected=error %s
5 
6 #include <arm_sve.h>
7 
8 #ifdef SVE_OVERLOADED_FORMS
9 // A simple used,unused... macro, long enough to represent any SVE builtin.
10 #define SVE_ACLE_FUNC(A1,A2_UNUSED,A3,A4_UNUSED) A1##A3
11 #else
12 #define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
13 #endif
14 
test_svqshlu_n_s8_z(svbool_t pg,svint8_t op1)15 svuint8_t test_svqshlu_n_s8_z(svbool_t pg, svint8_t op1)
16 {
17   // CHECK-LABEL: test_svqshlu_n_s8_z
18   // CHECK: %[[SEL:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.sel.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, <vscale x 16 x i8> zeroinitializer)
19   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.sqshlu.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %[[SEL]], i32 0)
20   // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
21   // overload-warning@+2 {{implicit declaration of function 'svqshlu_z'}}
22   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s8_z'}}
23   return SVE_ACLE_FUNC(svqshlu,_n_s8,_z,)(pg, op1, 0);
24 }
25 
test_svqshlu_n_s8_z_1(svbool_t pg,svint8_t op1)26 svuint8_t test_svqshlu_n_s8_z_1(svbool_t pg, svint8_t op1)
27 {
28   // CHECK-LABEL: test_svqshlu_n_s8_z_1
29   // CHECK: %[[SEL:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.sel.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, <vscale x 16 x i8> zeroinitializer)
30   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.sqshlu.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %[[SEL]], i32 7)
31   // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
32   // overload-warning@+2 {{implicit declaration of function 'svqshlu_z'}}
33   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s8_z'}}
34   return SVE_ACLE_FUNC(svqshlu,_n_s8,_z,)(pg, op1, 7);
35 }
36 
test_svqshlu_n_s16_z(svbool_t pg,svint16_t op1)37 svuint16_t test_svqshlu_n_s16_z(svbool_t pg, svint16_t op1)
38 {
39   // CHECK-LABEL: test_svqshlu_n_s16_z
40   // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
41   // CHECK: %[[SEL:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.sel.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, <vscale x 8 x i16> zeroinitializer)
42   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.sqshlu.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %[[SEL]], i32 0)
43   // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
44   // overload-warning@+2 {{implicit declaration of function 'svqshlu_z'}}
45   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s16_z'}}
46   return SVE_ACLE_FUNC(svqshlu,_n_s16,_z,)(pg, op1, 0);
47 }
48 
test_svqshlu_n_s16_z_1(svbool_t pg,svint16_t op1)49 svuint16_t test_svqshlu_n_s16_z_1(svbool_t pg, svint16_t op1)
50 {
51   // CHECK-LABEL: test_svqshlu_n_s16_z_1
52   // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
53   // CHECK: %[[SEL:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.sel.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, <vscale x 8 x i16> zeroinitializer)
54   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.sqshlu.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %[[SEL]], i32 15)
55   // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
56   // overload-warning@+2 {{implicit declaration of function 'svqshlu_z'}}
57   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s16_z'}}
58   return SVE_ACLE_FUNC(svqshlu,_n_s16,_z,)(pg, op1, 15);
59 }
60 
test_svqshlu_n_s32_z(svbool_t pg,svint32_t op1)61 svuint32_t test_svqshlu_n_s32_z(svbool_t pg, svint32_t op1)
62 {
63   // CHECK-LABEL: test_svqshlu_n_s32_z
64   // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
65   // CHECK: %[[SEL:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.sel.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, <vscale x 4 x i32> zeroinitializer)
66   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.sqshlu.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %[[SEL]], i32 0)
67   // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
68   // overload-warning@+2 {{implicit declaration of function 'svqshlu_z'}}
69   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s32_z'}}
70   return SVE_ACLE_FUNC(svqshlu,_n_s32,_z,)(pg, op1, 0);
71 }
72 
test_svqshlu_n_s32_z_1(svbool_t pg,svint32_t op1)73 svuint32_t test_svqshlu_n_s32_z_1(svbool_t pg, svint32_t op1)
74 {
75   // CHECK-LABEL: test_svqshlu_n_s32_z_1
76   // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
77   // CHECK: %[[SEL:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.sel.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, <vscale x 4 x i32> zeroinitializer)
78   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.sqshlu.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %[[SEL]], i32 31)
79   // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
80   // overload-warning@+2 {{implicit declaration of function 'svqshlu_z'}}
81   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s32_z'}}
82   return SVE_ACLE_FUNC(svqshlu,_n_s32,_z,)(pg, op1, 31);
83 }
84 
test_svqshlu_n_s64_z(svbool_t pg,svint64_t op1)85 svuint64_t test_svqshlu_n_s64_z(svbool_t pg, svint64_t op1)
86 {
87   // CHECK-LABEL: test_svqshlu_n_s64_z
88   // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
89   // CHECK: %[[SEL:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.sel.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, <vscale x 2 x i64> zeroinitializer)
90   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.sqshlu.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %[[SEL]], i32 0)
91   // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
92   // overload-warning@+2 {{implicit declaration of function 'svqshlu_z'}}
93   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s64_z'}}
94   return SVE_ACLE_FUNC(svqshlu,_n_s64,_z,)(pg, op1, 0);
95 }
96 
test_svqshlu_n_s64_z_1(svbool_t pg,svint64_t op1)97 svuint64_t test_svqshlu_n_s64_z_1(svbool_t pg, svint64_t op1)
98 {
99   // CHECK-LABEL: test_svqshlu_n_s64_z_1
100   // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
101   // CHECK: %[[SEL:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.sel.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, <vscale x 2 x i64> zeroinitializer)
102   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.sqshlu.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %[[SEL]], i32 63)
103   // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
104   // overload-warning@+2 {{implicit declaration of function 'svqshlu_z'}}
105   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s64_z'}}
106   return SVE_ACLE_FUNC(svqshlu,_n_s64,_z,)(pg, op1, 63);
107 }
108 
test_svqshlu_n_s8_m(svbool_t pg,svint8_t op1)109 svuint8_t test_svqshlu_n_s8_m(svbool_t pg, svint8_t op1)
110 {
111   // CHECK-LABEL: test_svqshlu_n_s8_m
112   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.sqshlu.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, i32 0)
113   // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
114   // overload-warning@+2 {{implicit declaration of function 'svqshlu_m'}}
115   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s8_m'}}
116   return SVE_ACLE_FUNC(svqshlu,_n_s8,_m,)(pg, op1, 0);
117 }
118 
test_svqshlu_n_s8_m_1(svbool_t pg,svint8_t op1)119 svuint8_t test_svqshlu_n_s8_m_1(svbool_t pg, svint8_t op1)
120 {
121   // CHECK-LABEL: test_svqshlu_n_s8_m_1
122   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.sqshlu.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, i32 7)
123   // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
124   // overload-warning@+2 {{implicit declaration of function 'svqshlu_m'}}
125   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s8_m'}}
126   return SVE_ACLE_FUNC(svqshlu,_n_s8,_m,)(pg, op1, 7);
127 }
128 
test_svqshlu_n_s16_m(svbool_t pg,svint16_t op1)129 svuint16_t test_svqshlu_n_s16_m(svbool_t pg, svint16_t op1)
130 {
131   // CHECK-LABEL: test_svqshlu_n_s16_m
132   // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
133   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.sqshlu.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, i32 0)
134   // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
135   // overload-warning@+2 {{implicit declaration of function 'svqshlu_m'}}
136   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s16_m'}}
137   return SVE_ACLE_FUNC(svqshlu,_n_s16,_m,)(pg, op1, 0);
138 }
139 
test_svqshlu_n_s16_m_1(svbool_t pg,svint16_t op1)140 svuint16_t test_svqshlu_n_s16_m_1(svbool_t pg, svint16_t op1)
141 {
142   // CHECK-LABEL: test_svqshlu_n_s16_m_1
143   // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
144   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.sqshlu.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, i32 15)
145   // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
146   // overload-warning@+2 {{implicit declaration of function 'svqshlu_m'}}
147   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s16_m'}}
148   return SVE_ACLE_FUNC(svqshlu,_n_s16,_m,)(pg, op1, 15);
149 }
150 
test_svqshlu_n_s32_m(svbool_t pg,svint32_t op1)151 svuint32_t test_svqshlu_n_s32_m(svbool_t pg, svint32_t op1)
152 {
153   // CHECK-LABEL: test_svqshlu_n_s32_m
154   // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
155   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.sqshlu.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, i32 0)
156   // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
157   // overload-warning@+2 {{implicit declaration of function 'svqshlu_m'}}
158   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s32_m'}}
159   return SVE_ACLE_FUNC(svqshlu,_n_s32,_m,)(pg, op1, 0);
160 }
161 
test_svqshlu_n_s32_m_1(svbool_t pg,svint32_t op1)162 svuint32_t test_svqshlu_n_s32_m_1(svbool_t pg, svint32_t op1)
163 {
164   // CHECK-LABEL: test_svqshlu_n_s32_m_1
165   // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
166   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.sqshlu.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, i32 31)
167   // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
168   // overload-warning@+2 {{implicit declaration of function 'svqshlu_m'}}
169   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s32_m'}}
170   return SVE_ACLE_FUNC(svqshlu,_n_s32,_m,)(pg, op1, 31);
171 }
172 
test_svqshlu_n_s64_m(svbool_t pg,svint64_t op1)173 svuint64_t test_svqshlu_n_s64_m(svbool_t pg, svint64_t op1)
174 {
175   // CHECK-LABEL: test_svqshlu_n_s64_m
176   // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
177   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.sqshlu.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, i32 0)
178   // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
179   // overload-warning@+2 {{implicit declaration of function 'svqshlu_m'}}
180   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s64_m'}}
181   return SVE_ACLE_FUNC(svqshlu,_n_s64,_m,)(pg, op1, 0);
182 }
183 
test_svqshlu_n_s64_m_1(svbool_t pg,svint64_t op1)184 svuint64_t test_svqshlu_n_s64_m_1(svbool_t pg, svint64_t op1)
185 {
186   // CHECK-LABEL: test_svqshlu_n_s64_m_1
187   // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
188   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.sqshlu.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, i32 63)
189   // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
190   // overload-warning@+2 {{implicit declaration of function 'svqshlu_m'}}
191   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s64_m'}}
192   return SVE_ACLE_FUNC(svqshlu,_n_s64,_m,)(pg, op1, 63);
193 }
194 
test_svqshlu_n_s8_x(svbool_t pg,svint8_t op1)195 svuint8_t test_svqshlu_n_s8_x(svbool_t pg, svint8_t op1)
196 {
197   // CHECK-LABEL: test_svqshlu_n_s8_x
198   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.sqshlu.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, i32 0)
199   // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
200   // overload-warning@+2 {{implicit declaration of function 'svqshlu_x'}}
201   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s8_x'}}
202   return SVE_ACLE_FUNC(svqshlu,_n_s8,_x,)(pg, op1, 0);
203 }
204 
test_svqshlu_n_s8_x_1(svbool_t pg,svint8_t op1)205 svuint8_t test_svqshlu_n_s8_x_1(svbool_t pg, svint8_t op1)
206 {
207   // CHECK-LABEL: test_svqshlu_n_s8_x_1
208   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.sqshlu.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, i32 7)
209   // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
210   // overload-warning@+2 {{implicit declaration of function 'svqshlu_x'}}
211   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s8_x'}}
212   return SVE_ACLE_FUNC(svqshlu,_n_s8,_x,)(pg, op1, 7);
213 }
214 
test_svqshlu_n_s16_x(svbool_t pg,svint16_t op1)215 svuint16_t test_svqshlu_n_s16_x(svbool_t pg, svint16_t op1)
216 {
217   // CHECK-LABEL: test_svqshlu_n_s16_x
218   // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
219   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.sqshlu.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, i32 0)
220   // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
221   // overload-warning@+2 {{implicit declaration of function 'svqshlu_x'}}
222   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s16_x'}}
223   return SVE_ACLE_FUNC(svqshlu,_n_s16,_x,)(pg, op1, 0);
224 }
225 
test_svqshlu_n_s16_x_1(svbool_t pg,svint16_t op1)226 svuint16_t test_svqshlu_n_s16_x_1(svbool_t pg, svint16_t op1)
227 {
228   // CHECK-LABEL: test_svqshlu_n_s16_x_1
229   // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
230   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.sqshlu.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, i32 15)
231   // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
232   // overload-warning@+2 {{implicit declaration of function 'svqshlu_x'}}
233   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s16_x'}}
234   return SVE_ACLE_FUNC(svqshlu,_n_s16,_x,)(pg, op1, 15);
235 }
236 
test_svqshlu_n_s32_x(svbool_t pg,svint32_t op1)237 svuint32_t test_svqshlu_n_s32_x(svbool_t pg, svint32_t op1)
238 {
239   // CHECK-LABEL: test_svqshlu_n_s32_x
240   // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
241   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.sqshlu.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, i32 0)
242   // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
243   // overload-warning@+2 {{implicit declaration of function 'svqshlu_x'}}
244   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s32_x'}}
245   return SVE_ACLE_FUNC(svqshlu,_n_s32,_x,)(pg, op1, 0);
246 }
247 
test_svqshlu_n_s32_x_1(svbool_t pg,svint32_t op1)248 svuint32_t test_svqshlu_n_s32_x_1(svbool_t pg, svint32_t op1)
249 {
250   // CHECK-LABEL: test_svqshlu_n_s32_x_1
251   // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
252   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.sqshlu.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, i32 31)
253   // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
254   // overload-warning@+2 {{implicit declaration of function 'svqshlu_x'}}
255   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s32_x'}}
256   return SVE_ACLE_FUNC(svqshlu,_n_s32,_x,)(pg, op1, 31);
257 }
258 
test_svqshlu_n_s64_x(svbool_t pg,svint64_t op1)259 svuint64_t test_svqshlu_n_s64_x(svbool_t pg, svint64_t op1)
260 {
261   // CHECK-LABEL: test_svqshlu_n_s64_x
262   // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
263   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.sqshlu.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, i32 0)
264   // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
265   // overload-warning@+2 {{implicit declaration of function 'svqshlu_x'}}
266   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s64_x'}}
267   return SVE_ACLE_FUNC(svqshlu,_n_s64,_x,)(pg, op1, 0);
268 }
269 
test_svqshlu_n_s64_x_1(svbool_t pg,svint64_t op1)270 svuint64_t test_svqshlu_n_s64_x_1(svbool_t pg, svint64_t op1)
271 {
272   // CHECK-LABEL: test_svqshlu_n_s64_x_1
273   // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
274   // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.sqshlu.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, i32 63)
275   // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
276   // overload-warning@+2 {{implicit declaration of function 'svqshlu_x'}}
277   // expected-warning@+1 {{implicit declaration of function 'svqshlu_n_s64_x'}}
278   return SVE_ACLE_FUNC(svqshlu,_n_s64,_x,)(pg, op1, 63);
279 }
280