1 ; RUN: opt -S -passes=slp-vectorizer < %s | FileCheck %s
2 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
3 target triple = "arm64-apple-ios5.0.0"
5 ; Holding a value live over a call boundary may require
6 ; spills and fills. This is the case for <2 x double>,
7 ; as it occupies a Q register of which there are no
15 define void @f(ptr %p, ptr %q) {
16 %addr2 = getelementptr double, ptr %q, i32 1
17 %addr = getelementptr double, ptr %p, i32 1
18 %x = load double, ptr %p
19 %y = load double, ptr %addr
21 store double %x, ptr %q
22 store double %y, ptr %addr2
27 ; Check we deal with loops correctly.
29 ; CHECK: store <2 x double>
30 ; CHECK: load <2 x double>
31 define void @f2(ptr %p, ptr %q) {
36 %p1 = phi double [0.0, %entry], [%x, %loop]
37 %p2 = phi double [0.0, %entry], [%y, %loop]
38 %addr2 = getelementptr double, ptr %q, i32 1
39 %addr = getelementptr double, ptr %p, i32 1
40 store double %p1, ptr %q
41 store double %p2, ptr %addr2
43 %x = load double, ptr %p
44 %y = load double, ptr %addr