33 lines · plain
1; REQUIRES: asserts2; RUN: llc -o /dev/null %s -debug-only=legalize-types 2>&1 | FileCheck %s3 4; This test check that when v4f64 gets broken down to two v2f64 it maintains5; the "nnan" flags.6 7; CHECK: Legalizing node: [[VFOUR:t.*]]: v4f64 = BUILD_VECTOR8; CHECK-NEXT: Analyzing result type: v4f649; CHECK-NEXT: Split node result: [[VFOUR]]: v4f64 = BUILD_VECTOR10 11; CHECK: Legalizing node: [[VTWOA:t.*]]: v2f64 = BUILD_VECTOR12; CHECK: Legally typed node: [[VTWOA]]: v2f64 = BUILD_VECTOR13; CHECK: Legalizing node: [[VTWOB:t.*]]: v2f64 = BUILD_VECTOR14; CHECK: Legally typed node: [[VTWOB]]: v2f64 = BUILD_VECTOR15; CHECK: Legalizing node: t31: v2f64 = fmaxnum nnan reassoc [[VTWOB]], [[VTWOA]]16 17target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"18target triple = "aarch64--linux-gnu"19 20 21; Function Attrs: norecurse nounwind22define fastcc double @test(double %a0, double %a1, double %a2, double %a3) unnamed_addr #1 {23entry:24 %0 = insertelement <4 x double> undef, double %a0, i32 025 %1 = insertelement <4 x double> %0, double %a1, i32 126 %2 = insertelement <4 x double> %1, double %a2, i32 227 %3 = insertelement <4 x double> %2, double %a3, i32 328 %4 = call nnan reassoc double @llvm.vector.reduce.fmax.v4f64(<4 x double> %3)29 ret double %430}31 32declare double @llvm.vector.reduce.fmax.v4f64(<4 x double>)33