float64x2_t test_vfmsq_lane_f64(float64x2_t a1, float64x2_t a2, float64x1_t a3) { // CHECK: test_vfmsq_lane_f64 return vfmsq_lane_f64(a1, a2, a3, 0); // NB: the test below is deliberately lose, so that we don't depend too much // upon the exact IR used to select lane 1 (usually a shufflevector) // CHECK: [[NEG:%.*]] = fsub <1 x double> {{.*}}, %a3 // CHECK: [[LANE:%.*]] = shufflevector <1 x double> [[NEG]] // CHECK: llvm.fma.v2f64(<2 x double> {{.*}}, <2 x double> [[LANE]], <2 x double> %a1) // CHECK-NEXT: ret }
float64x2_t test_vfmsq_lane_f64(float64x2_t a, float64x2_t b, float64x1_t v) { // CHECK: test_vfmsq_lane_f64 return vfmsq_lane_f64(a, b, v, 0); // CHECK: fmls {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[0] }