1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
4 define void @test(ptr noalias %0, ptr noalias %1) {
5 ; CHECK-LABEL: define void @test(
6 ; CHECK-SAME: ptr noalias [[TMP0:%.*]], ptr noalias [[TMP1:%.*]]) {
7 ; CHECK-NEXT: [[TMP5:%.*]] = getelementptr i8, ptr [[TMP1]], i64 8
8 ; CHECK-NEXT: [[TMP9:%.*]] = getelementptr i8, ptr [[TMP0]], i64 48
9 ; CHECK-NEXT: [[TMP11:%.*]] = getelementptr i8, ptr [[TMP0]], i64 8
10 ; CHECK-NEXT: [[TMP6:%.*]] = load <2 x double>, ptr [[TMP9]], align 16
11 ; CHECK-NEXT: [[TMP7:%.*]] = load <4 x double>, ptr [[TMP11]], align 8
12 ; CHECK-NEXT: [[TMP8:%.*]] = shufflevector <4 x double> [[TMP7]], <4 x double> poison, <6 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison>
13 ; CHECK-NEXT: [[TMP12:%.*]] = shufflevector <2 x double> [[TMP6]], <2 x double> poison, <6 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison>
14 ; CHECK-NEXT: [[TMP10:%.*]] = shufflevector <2 x double> [[TMP6]], <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
15 ; CHECK-NEXT: [[TMP13:%.*]] = shufflevector <4 x double> [[TMP7]], <4 x double> [[TMP10]], <6 x i32> <i32 2, i32 4, i32 0, i32 3, i32 5, i32 1>
16 ; CHECK-NEXT: store <6 x double> [[TMP13]], ptr [[TMP5]], align 8
17 ; CHECK-NEXT: [[TMP21:%.*]] = getelementptr i8, ptr [[TMP0]], i64 40
18 ; CHECK-NEXT: [[TMP22:%.*]] = load double, ptr [[TMP21]], align 8
19 ; CHECK-NEXT: [[TMP23:%.*]] = getelementptr i8, ptr [[TMP1]], i64 56
20 ; CHECK-NEXT: store double [[TMP22]], ptr [[TMP23]], align 8
21 ; CHECK-NEXT: ret void
23 %3 = getelementptr i8, ptr %1, i64 24
24 %4 = getelementptr i8, ptr %1, i64 48
25 %5 = getelementptr i8, ptr %1, i64 8
26 %6 = getelementptr i8, ptr %1, i64 16
27 %8 = getelementptr i8, ptr %0, i64 24
28 %9 = load double, ptr %8, align 8
29 store double %9, ptr %5, align 8
30 %10 = getelementptr i8, ptr %0, i64 48
31 %11 = load double, ptr %10, align 16
32 store double %11, ptr %6, align 16
33 %12 = getelementptr i8, ptr %0, i64 8
34 %13 = load double, ptr %12, align 8
35 store double %13, ptr %3, align 8
36 %14 = getelementptr i8, ptr %0, i64 32
37 %15 = load double, ptr %14, align 16
38 %16 = getelementptr i8, ptr %1, i64 32
39 store double %15, ptr %16, align 16
40 %17 = getelementptr i8, ptr %0, i64 56
41 %18 = load double, ptr %17, align 8
42 %19 = getelementptr i8, ptr %1, i64 40
43 store double %18, ptr %19, align 8
44 %20 = getelementptr i8, ptr %0, i64 16
45 %21 = load double, ptr %20, align 16
46 store double %21, ptr %4, align 16
47 %22 = getelementptr i8, ptr %0, i64 40
48 %23 = load double, ptr %22, align 8
49 %24 = getelementptr i8, ptr %1, i64 56
50 store double %23, ptr %24, align 8