1 ; RUN: not opt -S < %s 2>&1 | FileCheck %s
3 ; CHECK: Intrinsic has incorrect argument type!
4 ; CHECK-NEXT: float (double, <2 x double>)* @llvm.experimental.vector.reduce.v2.fadd.f32.f64.v2f64
5 define float @fadd_invalid_scalar_res(double %acc, <2 x double> %in) {
6 %res = call float @llvm.experimental.vector.reduce.v2.fadd.f32.f64.v2f64(double %acc, <2 x double> %in)
10 ; CHECK: Intrinsic has incorrect argument type!
11 ; CHECK-NEXT: double (float, <2 x double>)* @llvm.experimental.vector.reduce.v2.fadd.f64.f32.v2f64
12 define double @fadd_invalid_scalar_start(float %acc, <2 x double> %in) {
13 %res = call double @llvm.experimental.vector.reduce.v2.fadd.f64.f32.v2f64(float %acc, <2 x double> %in)
17 ; CHECK: Intrinsic has incorrect argument type!
18 ; CHECK-NEXT: <2 x double> (double, <2 x double>)* @llvm.experimental.vector.reduce.v2.fadd.v2f64.f64.v2f64
19 define <2 x double> @fadd_invalid_vector_res(double %acc, <2 x double> %in) {
20 %res = call <2 x double> @llvm.experimental.vector.reduce.v2.fadd.v2f64.f64.v2f64(double %acc, <2 x double> %in)
24 ; CHECK: Intrinsic has incorrect argument type!
25 ; CHECK-NEXT: double (<2 x double>, <2 x double>)* @llvm.experimental.vector.reduce.v2.fadd.f64.v2f64.v2f64
26 define double @fadd_invalid_vector_start(<2 x double> %in, <2 x double> %acc) {
27 %res = call double @llvm.experimental.vector.reduce.v2.fadd.f64.v2f64.v2f64(<2 x double> %acc, <2 x double> %in)
31 declare float @llvm.experimental.vector.reduce.v2.fadd.f32.f64.v2f64(double %acc, <2 x double> %in)
32 declare double @llvm.experimental.vector.reduce.v2.fadd.f64.f32.v2f64(float %acc, <2 x double> %in)
33 declare double @llvm.experimental.vector.reduce.v2.fadd.f64.v2f64.v2f64(<2 x double> %acc, <2 x double> %in)
34 declare <2 x double> @llvm.experimental.vector.reduce.v2.fadd.v2f64.f64.v2f64(double %acc, <2 x double> %in)