1 ; RUN: llvm-dis < %s.bc | FileCheck %s
3 ; vmovls should be auto-upgraded to sext
6 ; CHECK-NOT: arm.neon.vmovls.v8i16
10 ; CHECK-NOT: arm.neon.vmovls.v4i32
11 ; CHECK: sext <4 x i16>
14 ; CHECK-NOT: arm.neon.vmovls.v2i64
15 ; CHECK: sext <2 x i32>
17 ; vmovlu should be auto-upgraded to zext
20 ; CHECK-NOT: arm.neon.vmovlu.v8i16
21 ; CHECK: zext <8 x i8>
24 ; CHECK-NOT: arm.neon.vmovlu.v4i32
25 ; CHECK: zext <4 x i16>
28 ; CHECK-NOT: arm.neon.vmovlu.v2i64
29 ; CHECK: zext <2 x i32>
31 ; vaddl/vaddw should be auto-upgraded to add with sext/zext
34 ; CHECK-NOT: arm.neon.vaddls.v4i32
35 ; CHECK: sext <4 x i16>
36 ; CHECK-NEXT: sext <4 x i16>
37 ; CHECK-NEXT: add <4 x i32>
40 ; CHECK-NOT: arm.neon.vaddlu.v2i64
41 ; CHECK: zext <2 x i32>
42 ; CHECK-NEXT: zext <2 x i32>
43 ; CHECK-NEXT: add <2 x i64>
46 ; CHECK-NOT: arm.neon.vaddws.v8i16
47 ; CHECK: sext <8 x i8>
48 ; CHECK-NEXT: add <8 x i16>
51 ; CHECK-NOT: arm.neon.vaddwu.v4i32
52 ; CHECK: zext <4 x i16>
53 ; CHECK-NEXT: add <4 x i32>
55 ; vsubl/vsubw should be auto-upgraded to subtract with sext/zext
58 ; CHECK-NOT: arm.neon.vsubls.v4i32
59 ; CHECK: sext <4 x i16>
60 ; CHECK-NEXT: sext <4 x i16>
61 ; CHECK-NEXT: sub <4 x i32>
64 ; CHECK-NOT: arm.neon.vsublu.v2i64
65 ; CHECK: zext <2 x i32>
66 ; CHECK-NEXT: zext <2 x i32>
67 ; CHECK-NEXT: sub <2 x i64>
70 ; CHECK-NOT: arm.neon.vsubws.v8i16
71 ; CHECK: sext <8 x i8>
72 ; CHECK-NEXT: sub <8 x i16>
75 ; CHECK-NOT: arm.neon.vsubwu.v4i32
76 ; CHECK: zext <4 x i16>
77 ; CHECK-NEXT: sub <4 x i32>
79 ; vmull* intrinsics will remain intrinsics
82 ; CHECK: arm.neon.vmulls.v8i16
85 ; CHECK: arm.neon.vmullu.v4i32
88 ; CHECK: arm.neon.vmullp.v8i16
90 ; vmlal should be auto-upgraded to multiply/add with sext/zext
93 ; CHECK-NOT: arm.neon.vmlals.v2i64
94 ; CHECK: sext <2 x i32>
95 ; CHECK-NEXT: sext <2 x i32>
96 ; CHECK-NEXT: mul <2 x i64>
97 ; CHECK-NEXT: add <2 x i64>
100 ; CHECK-NOT: arm.neon.vmlalu.v8i16
101 ; CHECK: zext <8 x i8>
102 ; CHECK-NEXT: zext <8 x i8>
103 ; CHECK-NEXT: mul <8 x i16>
104 ; CHECK-NEXT: add <8 x i16>
106 ; vmlsl should be auto-upgraded to multiply/sub with sext/zext
109 ; CHECK-NOT: arm.neon.vmlsls.v4i32
110 ; CHECK: sext <4 x i16>
111 ; CHECK-NEXT: sext <4 x i16>
112 ; CHECK-NEXT: mul <4 x i32>
113 ; CHECK-NEXT: sub <4 x i32>
116 ; CHECK-NOT: arm.neon.vmlslu.v2i64
117 ; CHECK: zext <2 x i32>
118 ; CHECK-NEXT: zext <2 x i32>
119 ; CHECK-NEXT: mul <2 x i64>
120 ; CHECK-NEXT: sub <2 x i64>
122 ; vaba should be auto-upgraded to vabd + add
125 ; CHECK-NOT: arm.neon.vabas.v2i32
126 ; CHECK: arm.neon.vabds.v2i32
127 ; CHECK-NEXT: add <2 x i32>
130 ; CHECK-NOT: arm.neon.vabau.v16i8
131 ; CHECK: arm.neon.vabdu.v16i8
132 ; CHECK-NEXT: add <16 x i8>
134 ; vabal should be auto-upgraded to vabd with zext + add
137 ; CHECK-NOT: arm.neon.vabals.v4i32
138 ; CHECK: arm.neon.vabds.v4i16
139 ; CHECK-NEXT: zext <4 x i16>
140 ; CHECK-NEXT: add <4 x i32>
143 ; CHECK-NOT: arm.neon.vabalu.v2i64
144 ; CHECK: arm.neon.vabdu.v2i32
145 ; CHECK-NEXT: zext <2 x i32>
146 ; CHECK-NEXT: add <2 x i64>
148 ; vabdl should be auto-upgraded to vabd with zext
151 ; CHECK-NOT: arm.neon.vabdls.v8i16
152 ; CHECK: arm.neon.vabds.v8i8
153 ; CHECK-NEXT: zext <8 x i8>
156 ; CHECK-NOT: arm.neon.vabdlu.v4i32
157 ; CHECK: arm.neon.vabdu.v4i16
158 ; CHECK-NEXT: zext <4 x i16>
160 ; vmovn should be auto-upgraded to trunc
163 ; CHECK-NOT: arm.neon.vmovn.v8i8
164 ; CHECK: trunc <8 x i16>
167 ; CHECK-NOT: arm.neon.vmovn.v4i16
168 ; CHECK: trunc <4 x i32>
171 ; CHECK-NOT: arm.neon.vmovn.v2i32
172 ; CHECK: trunc <2 x i64>
174 ; vld* and vst* intrinsic calls need an alignment argument (defaulted to 1)
194 ; CHECK: vld2laneQi16
201 ; CHECK: vst2laneQi16