1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -mtriple=x86_64 -passes=slp-vectorizer < %s | FileCheck %s
4 define double @test(double %m, double %a) {
7 ; CHECK-NEXT: [[TMP0:%.*]] = call fast double @llvm.maxnum.f64(double 0.000000e+00, double [[M:%.*]])
8 ; CHECK-NEXT: [[TMP1:%.*]] = call fast double @llvm.maxnum.f64(double [[TMP0]], double [[A:%.*]])
9 ; CHECK-NEXT: ret double [[TMP1]]
12 %c = tail call fast double @llvm.maxnum.f64(double %m, double 0.000000e+00)
13 %c1 = tail call fast double @llvm.maxnum.f64(double %a, double %c)
14 %c2 = tail call fast double @llvm.maxnum.f64(double %c1, double 0.000000e+00)
18 declare double @llvm.maxnum.f64(double, double)