1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -mtriple=aarch64-none-linux-gnu < %s -o - | FileCheck %s
4 define <16 x i8> @shl_v16i8(<16 x i8> %a) {
5 ; CHECK-LABEL: shl_v16i8:
6 ; CHECK: // %bb.0: // %entry
7 ; CHECK-NEXT: add v0.16b, v0.16b, v0.16b
10 %add.i = shl <16 x i8> %a, <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>
14 define <8 x i16> @shl_v8i16(<8 x i16> %a) {
15 ; CHECK-LABEL: shl_v8i16:
16 ; CHECK: // %bb.0: // %entry
17 ; CHECK-NEXT: add v0.8h, v0.8h, v0.8h
20 %add.i = shl <8 x i16> %a, <i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>
24 define <4 x i32> @shl_v4i32(<4 x i32> %a) {
25 ; CHECK-LABEL: shl_v4i32:
26 ; CHECK: // %bb.0: // %entry
27 ; CHECK-NEXT: add v0.4s, v0.4s, v0.4s
30 %add.i = shl <4 x i32> %a, <i32 1, i32 1, i32 1, i32 1>
34 define <2 x i64> @shl_v2i64(<2 x i64> %a) {
35 ; CHECK-LABEL: shl_v2i64:
36 ; CHECK: // %bb.0: // %entry
37 ; CHECK-NEXT: add v0.2d, v0.2d, v0.2d
40 %add.i = shl <2 x i64> %a, <i64 1, i64 1>
44 define <8 x i8> @shl_v8i8(<8 x i8> %a) {
45 ; CHECK-LABEL: shl_v8i8:
46 ; CHECK: // %bb.0: // %entry
47 ; CHECK-NEXT: add v0.8b, v0.8b, v0.8b
50 %add.i = shl <8 x i8> %a, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
54 define <4 x i16> @shl_v4i16(<4 x i16> %a) {
55 ; CHECK-LABEL: shl_v4i16:
56 ; CHECK: // %bb.0: // %entry
57 ; CHECK-NEXT: add v0.4h, v0.4h, v0.4h
60 %add.i = shl <4 x i16> %a, <i16 1, i16 1, i16 1, i16 1>
64 define <2 x i32> @shl_v2i32(<2 x i32> %a) {
65 ; CHECK-LABEL: shl_v2i32:
66 ; CHECK: // %bb.0: // %entry
67 ; CHECK-NEXT: add v0.2s, v0.2s, v0.2s
70 %add.i = shl <2 x i32> %a, <i32 1, i32 1>
74 define <8 x i16> @sshll_v8i8(<8 x i8> %a) {
75 ; CHECK-LABEL: sshll_v8i8:
77 ; CHECK-NEXT: sshll v0.8h, v0.8b, #1
79 %1 = sext <8 x i8> %a to <8 x i16>
80 %tmp = shl <8 x i16> %1, <i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>
84 define <4 x i32> @sshll_v4i16(<4 x i16> %a) {
85 ; CHECK-LABEL: sshll_v4i16:
87 ; CHECK-NEXT: sshll v0.4s, v0.4h, #1
89 %1 = sext <4 x i16> %a to <4 x i32>
90 %tmp = shl <4 x i32> %1, <i32 1, i32 1, i32 1, i32 1>
94 define <2 x i64> @sshll_v2i32(<2 x i32> %a) {
95 ; CHECK-LABEL: sshll_v2i32:
97 ; CHECK-NEXT: sshll v0.2d, v0.2s, #1
99 %1 = sext <2 x i32> %a to <2 x i64>
100 %tmp = shl <2 x i64> %1, <i64 1, i64 1>
104 define <8 x i16> @ushll_v8i8(<8 x i8> %a) {
105 ; CHECK-LABEL: ushll_v8i8:
107 ; CHECK-NEXT: ushll v0.8h, v0.8b, #1
109 %1 = zext <8 x i8> %a to <8 x i16>
110 %tmp = shl <8 x i16> %1, <i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>
114 define <4 x i32> @ushll_v4i16(<4 x i16> %a) {
115 ; CHECK-LABEL: ushll_v4i16:
117 ; CHECK-NEXT: ushll v0.4s, v0.4h, #1
119 %1 = zext <4 x i16> %a to <4 x i32>
120 %tmp = shl <4 x i32> %1, <i32 1, i32 1, i32 1, i32 1>
124 define <2 x i64> @ushll_v2i32(<2 x i32> %a) {
125 ; CHECK-LABEL: ushll_v2i32:
127 ; CHECK-NEXT: ushll v0.2d, v0.2s, #1
129 %1 = zext <2 x i32> %a to <2 x i64>
130 %tmp = shl <2 x i64> %1, <i64 1, i64 1>