1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=thumbv8.1m.main-arm-none-eabi -mattr=+mve -verify-machineinstrs %s -o - | FileCheck %s
4 define arm_aapcs_vfpcc <16 x i8> @and_int8_t(<16 x i8> %src1, <16 x i8> %src2) {
5 ; CHECK-LABEL: and_int8_t:
6 ; CHECK: @ %bb.0: @ %entry
7 ; CHECK-NEXT: vand q0, q0, q1
10 %0 = and <16 x i8> %src1, %src2
14 define arm_aapcs_vfpcc <8 x i16> @and_int16_t(<8 x i16> %src1, <8 x i16> %src2) {
15 ; CHECK-LABEL: and_int16_t:
16 ; CHECK: @ %bb.0: @ %entry
17 ; CHECK-NEXT: vand q0, q0, q1
20 %0 = and <8 x i16> %src1, %src2
24 define arm_aapcs_vfpcc <4 x i32> @and_int32_t(<4 x i32> %src1, <4 x i32> %src2) {
25 ; CHECK-LABEL: and_int32_t:
26 ; CHECK: @ %bb.0: @ %entry
27 ; CHECK-NEXT: vand q0, q0, q1
30 %0 = and <4 x i32> %src1, %src2
34 define arm_aapcs_vfpcc <2 x i64> @and_int64_t(<2 x i64> %src1, <2 x i64> %src2) {
35 ; CHECK-LABEL: and_int64_t:
36 ; CHECK: @ %bb.0: @ %entry
37 ; CHECK-NEXT: vand q0, q0, q1
40 %0 = and <2 x i64> %src1, %src2
45 define arm_aapcs_vfpcc <16 x i8> @or_int8_t(<16 x i8> %src1, <16 x i8> %src2) {
46 ; CHECK-LABEL: or_int8_t:
47 ; CHECK: @ %bb.0: @ %entry
48 ; CHECK-NEXT: vorr q0, q0, q1
51 %0 = or <16 x i8> %src1, %src2
55 define arm_aapcs_vfpcc <8 x i16> @or_int16_t(<8 x i16> %src1, <8 x i16> %src2) {
56 ; CHECK-LABEL: or_int16_t:
57 ; CHECK: @ %bb.0: @ %entry
58 ; CHECK-NEXT: vorr q0, q0, q1
61 %0 = or <8 x i16> %src1, %src2
65 define arm_aapcs_vfpcc <4 x i32> @or_int32_t(<4 x i32> %src1, <4 x i32> %src2) {
66 ; CHECK-LABEL: or_int32_t:
67 ; CHECK: @ %bb.0: @ %entry
68 ; CHECK-NEXT: vorr q0, q0, q1
71 %0 = or <4 x i32> %src1, %src2
75 define arm_aapcs_vfpcc <2 x i64> @or_int64_t(<2 x i64> %src1, <2 x i64> %src2) {
76 ; CHECK-LABEL: or_int64_t:
77 ; CHECK: @ %bb.0: @ %entry
78 ; CHECK-NEXT: vorr q0, q0, q1
81 %0 = or <2 x i64> %src1, %src2
86 define arm_aapcs_vfpcc <16 x i8> @xor_int8_t(<16 x i8> %src1, <16 x i8> %src2) {
87 ; CHECK-LABEL: xor_int8_t:
88 ; CHECK: @ %bb.0: @ %entry
89 ; CHECK-NEXT: veor q0, q0, q1
92 %0 = xor <16 x i8> %src1, %src2
96 define arm_aapcs_vfpcc <8 x i16> @xor_int16_t(<8 x i16> %src1, <8 x i16> %src2) {
97 ; CHECK-LABEL: xor_int16_t:
98 ; CHECK: @ %bb.0: @ %entry
99 ; CHECK-NEXT: veor q0, q0, q1
102 %0 = xor <8 x i16> %src1, %src2
106 define arm_aapcs_vfpcc <4 x i32> @xor_int32_t(<4 x i32> %src1, <4 x i32> %src2) {
107 ; CHECK-LABEL: xor_int32_t:
108 ; CHECK: @ %bb.0: @ %entry
109 ; CHECK-NEXT: veor q0, q0, q1
112 %0 = xor <4 x i32> %src1, %src2
116 define arm_aapcs_vfpcc <2 x i64> @xor_int64_t(<2 x i64> %src1, <2 x i64> %src2) {
117 ; CHECK-LABEL: xor_int64_t:
118 ; CHECK: @ %bb.0: @ %entry
119 ; CHECK-NEXT: veor q0, q0, q1
122 %0 = xor <2 x i64> %src1, %src2
126 define arm_aapcs_vfpcc <16 x i8> @v_mvn_i8(<16 x i8> %src) {
127 ; CHECK-LABEL: v_mvn_i8:
128 ; CHECK: @ %bb.0: @ %entry
129 ; CHECK-NEXT: vmvn q0, q0
132 %0 = xor <16 x i8> %src, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
136 define arm_aapcs_vfpcc <8 x i16> @v_mvn_i16(<8 x i16> %src) {
137 ; CHECK-LABEL: v_mvn_i16:
138 ; CHECK: @ %bb.0: @ %entry
139 ; CHECK-NEXT: vmvn q0, q0
142 %0 = xor <8 x i16> %src, <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1>
146 define arm_aapcs_vfpcc <4 x i32> @v_mvn_i32(<4 x i32> %src) {
147 ; CHECK-LABEL: v_mvn_i32:
148 ; CHECK: @ %bb.0: @ %entry
149 ; CHECK-NEXT: vmvn q0, q0
152 %0 = xor <4 x i32> %src, <i32 -1, i32 -1, i32 -1, i32 -1>
156 define arm_aapcs_vfpcc <2 x i64> @v_mvn_i64(<2 x i64> %src) {
157 ; CHECK-LABEL: v_mvn_i64:
158 ; CHECK: @ %bb.0: @ %entry
159 ; CHECK-NEXT: vmvn q0, q0
162 %0 = xor <2 x i64> %src, <i64 -1, i64 -1>
167 define arm_aapcs_vfpcc <16 x i8> @v_bic_i8(<16 x i8> %src1, <16 x i8> %src2) {
168 ; CHECK-LABEL: v_bic_i8:
169 ; CHECK: @ %bb.0: @ %entry
170 ; CHECK-NEXT: vbic q0, q1, q0
173 %0 = xor <16 x i8> %src1, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
174 %1 = and <16 x i8> %src2, %0
178 define arm_aapcs_vfpcc <8 x i16> @v_bic_i16(<8 x i16> %src1, <8 x i16> %src2) {
179 ; CHECK-LABEL: v_bic_i16:
180 ; CHECK: @ %bb.0: @ %entry
181 ; CHECK-NEXT: vbic q0, q1, q0
184 %0 = xor <8 x i16> %src1, <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1>
185 %1 = and <8 x i16> %src2, %0
189 define arm_aapcs_vfpcc <4 x i32> @v_bic_i32(<4 x i32> %src1, <4 x i32> %src2) {
190 ; CHECK-LABEL: v_bic_i32:
191 ; CHECK: @ %bb.0: @ %entry
192 ; CHECK-NEXT: vbic q0, q1, q0
195 %0 = xor <4 x i32> %src1, <i32 -1, i32 -1, i32 -1, i32 -1>
196 %1 = and <4 x i32> %src2, %0
200 define arm_aapcs_vfpcc <2 x i64> @v_bic_i64(<2 x i64> %src1, <2 x i64> %src2) {
201 ; CHECK-LABEL: v_bic_i64:
202 ; CHECK: @ %bb.0: @ %entry
203 ; CHECK-NEXT: vbic q0, q1, q0
206 %0 = xor <2 x i64> %src1, <i64 -1, i64 -1>
207 %1 = and <2 x i64> %src2, %0
212 define arm_aapcs_vfpcc <16 x i8> @v_or_i8(<16 x i8> %src1, <16 x i8> %src2) {
213 ; CHECK-LABEL: v_or_i8:
214 ; CHECK: @ %bb.0: @ %entry
215 ; CHECK-NEXT: vorn q0, q1, q0
218 %0 = xor <16 x i8> %src1, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
219 %1 = or <16 x i8> %src2, %0
223 define arm_aapcs_vfpcc <8 x i16> @v_or_i16(<8 x i16> %src1, <8 x i16> %src2) {
224 ; CHECK-LABEL: v_or_i16:
225 ; CHECK: @ %bb.0: @ %entry
226 ; CHECK-NEXT: vorn q0, q1, q0
229 %0 = xor <8 x i16> %src1, <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1>
230 %1 = or <8 x i16> %src2, %0
234 define arm_aapcs_vfpcc <4 x i32> @v_or_i32(<4 x i32> %src1, <4 x i32> %src2) {
235 ; CHECK-LABEL: v_or_i32:
236 ; CHECK: @ %bb.0: @ %entry
237 ; CHECK-NEXT: vorn q0, q1, q0
240 %0 = xor <4 x i32> %src1, <i32 -1, i32 -1, i32 -1, i32 -1>
241 %1 = or <4 x i32> %src2, %0
245 define arm_aapcs_vfpcc <2 x i64> @v_or_i64(<2 x i64> %src1, <2 x i64> %src2) {
246 ; CHECK-LABEL: v_or_i64:
247 ; CHECK: @ %bb.0: @ %entry
248 ; CHECK-NEXT: vorn q0, q1, q0
251 %0 = xor <2 x i64> %src1, <i64 -1, i64 -1>
252 %1 = or <2 x i64> %src2, %0