1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
2 ; RUN: opt -passes=slp-vectorizer -S -mtriple=nvptx64-unknown-unknown < %s | FileCheck %s
4 define <2 x float> @baz() {
5 ; CHECK-LABEL: define <2 x float> @baz() {
7 ; CHECK-NEXT: [[EXTRACTELEMENT:%.*]] = extractelement <2 x float> zeroinitializer, i64 0
8 ; CHECK-NEXT: [[FCMP:%.*]] = fcmp uno float [[EXTRACTELEMENT]], 0.000000e+00
9 ; CHECK-NEXT: [[FCMP1:%.*]] = fcmp uno float 0.000000e+00, 0.000000e+00
10 ; CHECK-NEXT: [[OR:%.*]] = or i1 [[FCMP]], [[FCMP1]]
11 ; CHECK-NEXT: [[FCMP2:%.*]] = fcmp oeq float 0.000000e+00, 0.000000e+00
12 ; CHECK-NEXT: [[OR3:%.*]] = or i1 [[FCMP2]], [[OR]]
13 ; CHECK-NEXT: [[FCMP4:%.*]] = fcmp oeq float 0.000000e+00, 0.000000e+00
14 ; CHECK-NEXT: [[OR5:%.*]] = or i1 [[FCMP4]], [[OR3]]
15 ; CHECK-NEXT: br i1 [[OR5]], label [[BB6:%.*]], label [[BB7:%.*]]
17 ; CHECK-NEXT: ret <2 x float> zeroinitializer
19 ; CHECK-NEXT: ret <2 x float> zeroinitializer
22 %extractelement = extractelement <2 x float> zeroinitializer, i64 0
23 %fcmp = fcmp uno float %extractelement, 0.000000e+00
24 %fcmp1 = fcmp uno float 0.000000e+00, 0.000000e+00
25 %or = or i1 %fcmp, %fcmp1
26 %fcmp2 = fcmp oeq float 0.000000e+00, 0.000000e+00
27 %or3 = or i1 %fcmp2, %or
28 %fcmp4 = fcmp oeq float 0.000000e+00, 0.000000e+00
29 %or5 = or i1 %fcmp4, %or3
30 br i1 %or5, label %bb6, label %bb7
33 ret <2 x float> zeroinitializer
36 ret <2 x float> zeroinitializer