1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
2 ; RUN: opt -S --passes=slp-vectorizer -mtriple=thumbv7-unknown-linux-android24 < %s | FileCheck %s
5 ; CHECK-LABEL: define void @test() {
7 ; CHECK-NEXT: [[TMP0:%.*]] = load float, ptr null, align 4
8 ; CHECK-NEXT: [[TMP1:%.*]] = load float, ptr null, align 4
9 ; CHECK-NEXT: [[TMP2:%.*]] = load float, ptr null, align 4
10 ; CHECK-NEXT: [[CMP_I:%.*]] = fcmp ogt float [[TMP1]], [[TMP0]]
11 ; CHECK-NEXT: [[V14_0:%.*]] = select i1 [[CMP_I]], float [[TMP1]], float 0.000000e+00
12 ; CHECK-NEXT: [[V0_0:%.*]] = select i1 [[CMP_I]], float [[TMP0]], float 0.000000e+00
13 ; CHECK-NEXT: [[CMP4_I:%.*]] = fcmp ogt float 0.000000e+00, [[TMP2]]
14 ; CHECK-NEXT: [[V19_0:%.*]] = select i1 [[CMP4_I]], float 0.000000e+00, float 0.000000e+00
15 ; CHECK-NEXT: [[V9_0:%.*]] = select i1 [[CMP4_I]], float [[TMP2]], float 0.000000e+00
16 ; CHECK-NEXT: store float [[V0_0]], ptr null, align 4
17 ; CHECK-NEXT: [[V9IDX:%.*]] = getelementptr i8, ptr null, i32 4
18 ; CHECK-NEXT: store float [[V9_0]], ptr [[V9IDX]], align 4
19 ; CHECK-NEXT: [[V14IDX:%.*]] = getelementptr i8, ptr null, i32 8
20 ; CHECK-NEXT: store float [[V14_0]], ptr [[V14IDX]], align 4
21 ; CHECK-NEXT: [[V19IDX:%.*]] = getelementptr i8, ptr null, i32 12
22 ; CHECK-NEXT: store float [[V19_0]], ptr [[V19IDX]], align 4
23 ; CHECK-NEXT: ret void
26 %0 = load float, ptr null, align 4
27 %1 = load float, ptr null, align 4
28 %2 = load float, ptr null, align 4
29 %cmp.i = fcmp ogt float %1, %0
30 %v14.0 = select i1 %cmp.i, float %1, float 0.000000e+00
31 %v0.0 = select i1 %cmp.i, float %0, float 0.000000e+00
32 %cmp4.i = fcmp ogt float 0.000000e+00, %2
33 %v19.0 = select i1 %cmp4.i, float 0.000000e+00, float 0.000000e+00
34 %v9.0 = select i1 %cmp4.i, float %2, float 0.000000e+00
35 store float %v0.0, ptr null, align 4
36 %v9idx = getelementptr i8, ptr null, i32 4
37 store float %v9.0, ptr %v9idx, align 4
38 %v14idx = getelementptr i8, ptr null, i32 8
39 store float %v14.0, ptr %v14idx, align 4
40 %v19idx = getelementptr i8, ptr null, i32 12
41 store float %v19.0, ptr %v19idx, align 4