1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
2 ; RUN: opt -S -passes=slp-vectorizer < %s | FileCheck %s
4 define <2 x i1> @scalarize_is_fpclass(<2 x float> %x) {
5 ; CHECK-LABEL: define <2 x i1> @scalarize_is_fpclass
6 ; CHECK-SAME: (<2 x float> [[X:%.*]]) {
7 ; CHECK-NEXT: [[TMP1:%.*]] = call <2 x i1> @llvm.is.fpclass.v2f32(<2 x float> [[X]], i32 123)
8 ; CHECK-NEXT: ret <2 x i1> [[TMP1]]
10 %x.i0 = extractelement <2 x float> %x, i32 0
11 %isfpclass.i0 = call i1 @llvm.is.fpclass.f32(float %x.i0, i32 123)
12 %x.i1 = extractelement <2 x float> %x, i32 1
13 %isfpclass.i1 = call i1 @llvm.is.fpclass.f32(float %x.i1, i32 123)
14 %isfpclass.upto0 = insertelement <2 x i1> poison, i1 %isfpclass.i0, i32 0
15 %isfpclass = insertelement <2 x i1> %isfpclass.upto0, i1 %isfpclass.i1, i32 1
16 ret <2 x i1> %isfpclass
19 declare i1 @llvm.is.fpclass.f32(float, i32 immarg)