minix/external/bsd/llvm/dist/clang/test/CodeGen/aarch64-neon-2velem.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

817 lines
28 KiB
C

// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon \
// RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon \
// RUN: -S -O3 -o - %s | FileCheck %s
// Test new aarch64 intrinsics and types
#include <arm_neon.h>
int16x4_t test_vmla_lane_s16(int16x4_t a, int16x4_t b, int16x4_t v) {
// CHECK: test_vmla_lane_s16
return vmla_lane_s16(a, b, v, 1);
// CHECK: mla {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int16x8_t test_vmlaq_lane_s16(int16x8_t a, int16x8_t b, int16x4_t v) {
// CHECK: test_vmlaq_lane_s16
return vmlaq_lane_s16(a, b, v, 1);
// CHECK: mla {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int32x2_t test_vmla_lane_s32(int32x2_t a, int32x2_t b, int32x2_t v) {
// CHECK: test_vmla_lane_s32
return vmla_lane_s32(a, b, v, 1);
// CHECK: mla {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlaq_lane_s32(int32x4_t a, int32x4_t b, int32x2_t v) {
// CHECK: test_vmlaq_lane_s32
return vmlaq_lane_s32(a, b, v, 1);
// CHECK: mla {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int16x4_t test_vmla_laneq_s16(int16x4_t a, int16x4_t b, int16x8_t v) {
// CHECK: test_vmla_laneq_s16
return vmla_laneq_s16(a, b, v, 1);
// CHECK: mla {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int16x8_t test_vmlaq_laneq_s16(int16x8_t a, int16x8_t b, int16x8_t v) {
// CHECK: test_vmlaq_laneq_s16
return vmlaq_laneq_s16(a, b, v, 1);
// CHECK: mla {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int32x2_t test_vmla_laneq_s32(int32x2_t a, int32x2_t b, int32x4_t v) {
// CHECK: test_vmla_laneq_s32
return vmla_laneq_s32(a, b, v, 1);
// CHECK: mla {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlaq_laneq_s32(int32x4_t a, int32x4_t b, int32x4_t v) {
// CHECK: test_vmlaq_laneq_s32
return vmlaq_laneq_s32(a, b, v, 1);
// CHECK: mla {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int16x4_t test_vmls_lane_s16(int16x4_t a, int16x4_t b, int16x4_t v) {
// CHECK: test_vmls_lane_s16
return vmls_lane_s16(a, b, v, 1);
// CHECK: mls {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int16x8_t test_vmlsq_lane_s16(int16x8_t a, int16x8_t b, int16x4_t v) {
// CHECK: test_vmlsq_lane_s16
return vmlsq_lane_s16(a, b, v, 1);
// CHECK: mls {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int32x2_t test_vmls_lane_s32(int32x2_t a, int32x2_t b, int32x2_t v) {
// CHECK: test_vmls_lane_s32
return vmls_lane_s32(a, b, v, 1);
// CHECK: mls {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsq_lane_s32(int32x4_t a, int32x4_t b, int32x2_t v) {
// CHECK: test_vmlsq_lane_s32
return vmlsq_lane_s32(a, b, v, 1);
// CHECK: mls {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int16x4_t test_vmls_laneq_s16(int16x4_t a, int16x4_t b, int16x8_t v) {
// CHECK: test_vmls_laneq_s16
return vmls_laneq_s16(a, b, v, 1);
// CHECK: mls {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int16x8_t test_vmlsq_laneq_s16(int16x8_t a, int16x8_t b, int16x8_t v) {
// CHECK: test_vmlsq_laneq_s16
return vmlsq_laneq_s16(a, b, v, 1);
// CHECK: mls {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int32x2_t test_vmls_laneq_s32(int32x2_t a, int32x2_t b, int32x4_t v) {
// CHECK: test_vmls_laneq_s32
return vmls_laneq_s32(a, b, v, 1);
// CHECK: mls {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsq_laneq_s32(int32x4_t a, int32x4_t b, int32x4_t v) {
// CHECK: test_vmlsq_laneq_s32
return vmlsq_laneq_s32(a, b, v, 1);
// CHECK: mls {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int16x4_t test_vmul_lane_s16(int16x4_t a, int16x4_t v) {
// CHECK: test_vmul_lane_s16
return vmul_lane_s16(a, v, 1);
// CHECK: mul {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int16x8_t test_vmulq_lane_s16(int16x8_t a, int16x4_t v) {
// CHECK: test_vmulq_lane_s16
return vmulq_lane_s16(a, v, 1);
// CHECK: mul {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int32x2_t test_vmul_lane_s32(int32x2_t a, int32x2_t v) {
// CHECK: test_vmul_lane_s32
return vmul_lane_s32(a, v, 1);
// CHECK: mul {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmulq_lane_s32(int32x4_t a, int32x2_t v) {
// CHECK: test_vmulq_lane_s32
return vmulq_lane_s32(a, v, 1);
// CHECK: mul {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
uint16x4_t test_vmul_lane_u16(uint16x4_t a, uint16x4_t v) {
// CHECK: test_vmul_lane_u16
return vmul_lane_u16(a, v, 1);
// CHECK: mul {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
uint16x8_t test_vmulq_lane_u16(uint16x8_t a, uint16x4_t v) {
// CHECK: test_vmulq_lane_u16
return vmulq_lane_u16(a, v, 1);
// CHECK: mul {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
uint32x2_t test_vmul_lane_u32(uint32x2_t a, uint32x2_t v) {
// CHECK: test_vmul_lane_u32
return vmul_lane_u32(a, v, 1);
// CHECK: mul {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
uint32x4_t test_vmulq_lane_u32(uint32x4_t a, uint32x2_t v) {
// CHECK: test_vmulq_lane_u32
return vmulq_lane_u32(a, v, 1);
// CHECK: mul {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int16x4_t test_vmul_laneq_s16(int16x4_t a, int16x8_t v) {
// CHECK: test_vmul_laneq_s16
return vmul_laneq_s16(a, v, 1);
// CHECK: mul {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int16x8_t test_vmulq_laneq_s16(int16x8_t a, int16x8_t v) {
// CHECK: test_vmulq_laneq_s16
return vmulq_laneq_s16(a, v, 1);
// CHECK: mul {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int32x2_t test_vmul_laneq_s32(int32x2_t a, int32x4_t v) {
// CHECK: test_vmul_laneq_s32
return vmul_laneq_s32(a, v, 1);
// CHECK: mul {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmulq_laneq_s32(int32x4_t a, int32x4_t v) {
// CHECK: test_vmulq_laneq_s32
return vmulq_laneq_s32(a, v, 1);
// CHECK: mul {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
uint16x4_t test_vmul_laneq_u16(uint16x4_t a, uint16x8_t v) {
// CHECK: test_vmul_laneq_u16
return vmul_laneq_u16(a, v, 1);
// CHECK: mul {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
uint16x8_t test_vmulq_laneq_u16(uint16x8_t a, uint16x8_t v) {
// CHECK: test_vmulq_laneq_u16
return vmulq_laneq_u16(a, v, 1);
// CHECK: mul {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
uint32x2_t test_vmul_laneq_u32(uint32x2_t a, uint32x4_t v) {
// CHECK: test_vmul_laneq_u32
return vmul_laneq_u32(a, v, 1);
// CHECK: mul {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
uint32x4_t test_vmulq_laneq_u32(uint32x4_t a, uint32x4_t v) {
// CHECK: test_vmulq_laneq_u32
return vmulq_laneq_u32(a, v, 1);
// CHECK: mul {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float32x2_t test_vfma_lane_f32(float32x2_t a, float32x2_t b, float32x2_t v) {
// CHECK: test_vfma_lane_f32
return vfma_lane_f32(a, b, v, 1);
// CHECK: fmla {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
float32x4_t test_vfmaq_lane_f32(float32x4_t a, float32x4_t b, float32x2_t v) {
// CHECK: test_vfmaq_lane_f32
return vfmaq_lane_f32(a, b, v, 1);
// CHECK: fmla {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float32x2_t test_vfma_laneq_f32(float32x2_t a, float32x2_t b, float32x4_t v) {
// CHECK: test_vfma_laneq_f32
return vfma_laneq_f32(a, b, v, 1);
// CHECK: fmla {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
float32x4_t test_vfmaq_laneq_f32(float32x4_t a, float32x4_t b, float32x4_t v) {
// CHECK: test_vfmaq_laneq_f32
return vfmaq_laneq_f32(a, b, v, 1);
// CHECK: fmla {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float32x2_t test_vfms_lane_f32(float32x2_t a, float32x2_t b, float32x2_t v) {
// CHECK: test_vfms_lane_f32
return vfms_lane_f32(a, b, v, 1);
// CHECK: fmls {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
float32x4_t test_vfmsq_lane_f32(float32x4_t a, float32x4_t b, float32x2_t v) {
// CHECK: test_vfmsq_lane_f32
return vfmsq_lane_f32(a, b, v, 1);
// CHECK: fmls {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float32x2_t test_vfms_laneq_f32(float32x2_t a, float32x2_t b, float32x4_t v) {
// CHECK: test_vfms_laneq_f32
return vfms_laneq_f32(a, b, v, 1);
// CHECK: fmls {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
float32x4_t test_vfmsq_laneq_f32(float32x4_t a, float32x4_t b, float32x4_t v) {
// CHECK: test_vfmsq_laneq_f32
return vfmsq_laneq_f32(a, b, v, 1);
// CHECK: fmls {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float64x2_t test_vfmaq_lane_f64(float64x2_t a, float64x2_t b, float64x1_t v) {
// CHECK: test_vfmaq_lane_f64
return vfmaq_lane_f64(a, b, v, 0);
// CHECK: fmla {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[0]
}
float64x2_t test_vfmaq_laneq_f64_0(float64x2_t a, float64x2_t b, float64x2_t v) {
// CHECK: test_vfmaq_laneq_f64
return vfmaq_laneq_f64(a, b, v, 0);
// CHECK: fmla {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[0]
}
float64x2_t test_vfmaq_laneq_f64(float64x2_t a, float64x2_t b, float64x2_t v) {
// CHECK: test_vfmaq_laneq_f64
return vfmaq_laneq_f64(a, b, v, 1);
// CHECK: fmla {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[1]
}
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]
}
float64x2_t test_vfmsq_laneq_f64_0(float64x2_t a, float64x2_t b, float64x2_t v) {
// CHECK: test_vfmsq_laneq_f64
return vfmsq_laneq_f64(a, b, v, 0);
// CHECK: fmls {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[0]
}
float64x2_t test_vfmsq_laneq_f64(float64x2_t a, float64x2_t b, float64x2_t v) {
// CHECK: test_vfmsq_laneq_f64
return vfmsq_laneq_f64(a, b, v, 1);
// CHECK: fmls {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[1]
}
int32x4_t test_vmlal_lane_s16(int32x4_t a, int16x4_t b, int16x4_t v) {
// CHECK: test_vmlal_lane_s16
return vmlal_lane_s16(a, b, v, 1);
// CHECK: smlal {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlal_lane_s32(int64x2_t a, int32x2_t b, int32x2_t v) {
// CHECK: test_vmlal_lane_s32
return vmlal_lane_s32(a, b, v, 1);
// CHECK: smlal {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlal_laneq_s16(int32x4_t a, int16x4_t b, int16x8_t v) {
// CHECK: test_vmlal_laneq_s16
return vmlal_laneq_s16(a, b, v, 1);
// CHECK: smlal {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlal_laneq_s32(int64x2_t a, int32x2_t b, int32x4_t v) {
// CHECK: test_vmlal_laneq_s32
return vmlal_laneq_s32(a, b, v, 1);
// CHECK: smlal {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlal_high_lane_s16(int32x4_t a, int16x8_t b, int16x4_t v) {
// CHECK: test_vmlal_high_lane_s16
return vmlal_high_lane_s16(a, b, v, 1);
// CHECK: smlal2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlal_high_lane_s32(int64x2_t a, int32x4_t b, int32x2_t v) {
// CHECK: test_vmlal_high_lane_s32
return vmlal_high_lane_s32(a, b, v, 1);
// CHECK: smlal2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlal_high_laneq_s16(int32x4_t a, int16x8_t b, int16x8_t v) {
// CHECK: test_vmlal_high_laneq_s16
return vmlal_high_laneq_s16(a, b, v, 1);
// CHECK: smlal2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlal_high_laneq_s32(int64x2_t a, int32x4_t b, int32x4_t v) {
// CHECK: test_vmlal_high_laneq_s32
return vmlal_high_laneq_s32(a, b, v, 1);
// CHECK: smlal2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsl_lane_s16(int32x4_t a, int16x4_t b, int16x4_t v) {
// CHECK: test_vmlsl_lane_s16
return vmlsl_lane_s16(a, b, v, 1);
// CHECK: smlsl {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlsl_lane_s32(int64x2_t a, int32x2_t b, int32x2_t v) {
// CHECK: test_vmlsl_lane_s32
return vmlsl_lane_s32(a, b, v, 1);
// CHECK: smlsl {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsl_laneq_s16(int32x4_t a, int16x4_t b, int16x8_t v) {
// CHECK: test_vmlsl_laneq_s16
return vmlsl_laneq_s16(a, b, v, 1);
// CHECK: smlsl {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlsl_laneq_s32(int64x2_t a, int32x2_t b, int32x4_t v) {
// CHECK: test_vmlsl_laneq_s32
return vmlsl_laneq_s32(a, b, v, 1);
// CHECK: smlsl {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsl_high_lane_s16(int32x4_t a, int16x8_t b, int16x4_t v) {
// CHECK: test_vmlsl_high_lane_s16
return vmlsl_high_lane_s16(a, b, v, 1);
// CHECK: smlsl2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlsl_high_lane_s32(int64x2_t a, int32x4_t b, int32x2_t v) {
// CHECK: test_vmlsl_high_lane_s32
return vmlsl_high_lane_s32(a, b, v, 1);
// CHECK: smlsl2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsl_high_laneq_s16(int32x4_t a, int16x8_t b, int16x8_t v) {
// CHECK: test_vmlsl_high_laneq_s16
return vmlsl_high_laneq_s16(a, b, v, 1);
// CHECK: smlsl2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlsl_high_laneq_s32(int64x2_t a, int32x4_t b, int32x4_t v) {
// CHECK: test_vmlsl_high_laneq_s32
return vmlsl_high_laneq_s32(a, b, v, 1);
// CHECK: smlsl2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlal_lane_u16(int32x4_t a, int16x4_t b, int16x4_t v) {
// CHECK: test_vmlal_lane_u16
return vmlal_lane_u16(a, b, v, 1);
// CHECK: umlal {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlal_lane_u32(int64x2_t a, int32x2_t b, int32x2_t v) {
// CHECK: test_vmlal_lane_u32
return vmlal_lane_u32(a, b, v, 1);
// CHECK: umlal {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlal_laneq_u16(int32x4_t a, int16x4_t b, int16x8_t v) {
// CHECK: test_vmlal_laneq_u16
return vmlal_laneq_u16(a, b, v, 1);
// CHECK: umlal {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlal_laneq_u32(int64x2_t a, int32x2_t b, int32x4_t v) {
// CHECK: test_vmlal_laneq_u32
return vmlal_laneq_u32(a, b, v, 1);
// CHECK: umlal {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlal_high_lane_u16(int32x4_t a, int16x8_t b, int16x4_t v) {
// CHECK: test_vmlal_high_lane_u16
return vmlal_high_lane_u16(a, b, v, 1);
// CHECK: umlal2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlal_high_lane_u32(int64x2_t a, int32x4_t b, int32x2_t v) {
// CHECK: test_vmlal_high_lane_u32
return vmlal_high_lane_u32(a, b, v, 1);
// CHECK: umlal2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlal_high_laneq_u16(int32x4_t a, int16x8_t b, int16x8_t v) {
// CHECK: test_vmlal_high_laneq_u16
return vmlal_high_laneq_u16(a, b, v, 1);
// CHECK: umlal2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlal_high_laneq_u32(int64x2_t a, int32x4_t b, int32x4_t v) {
// CHECK: test_vmlal_high_laneq_u32
return vmlal_high_laneq_u32(a, b, v, 1);
// CHECK: umlal2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsl_lane_u16(int32x4_t a, int16x4_t b, int16x4_t v) {
// CHECK: test_vmlsl_lane_u16
return vmlsl_lane_u16(a, b, v, 1);
// CHECK: umlsl {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlsl_lane_u32(int64x2_t a, int32x2_t b, int32x2_t v) {
// CHECK: test_vmlsl_lane_u32
return vmlsl_lane_u32(a, b, v, 1);
// CHECK: umlsl {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsl_laneq_u16(int32x4_t a, int16x4_t b, int16x8_t v) {
// CHECK: test_vmlsl_laneq_u16
return vmlsl_laneq_u16(a, b, v, 1);
// CHECK: umlsl {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlsl_laneq_u32(int64x2_t a, int32x2_t b, int32x4_t v) {
// CHECK: test_vmlsl_laneq_u32
return vmlsl_laneq_u32(a, b, v, 1);
// CHECK: umlsl {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsl_high_lane_u16(int32x4_t a, int16x8_t b, int16x4_t v) {
// CHECK: test_vmlsl_high_lane_u16
return vmlsl_high_lane_u16(a, b, v, 1);
// CHECK: umlsl2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlsl_high_lane_u32(int64x2_t a, int32x4_t b, int32x2_t v) {
// CHECK: test_vmlsl_high_lane_u32
return vmlsl_high_lane_u32(a, b, v, 1);
// CHECK: umlsl2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmlsl_high_laneq_u16(int32x4_t a, int16x8_t b, int16x8_t v) {
// CHECK: test_vmlsl_high_laneq_u16
return vmlsl_high_laneq_u16(a, b, v, 1);
// CHECK: umlsl2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmlsl_high_laneq_u32(int64x2_t a, int32x4_t b, int32x4_t v) {
// CHECK: test_vmlsl_high_laneq_u32
return vmlsl_high_laneq_u32(a, b, v, 1);
// CHECK: umlsl2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmull_lane_s16(int16x4_t a, int16x4_t v) {
// CHECK: test_vmull_lane_s16
return vmull_lane_s16(a, v, 1);
// CHECK: smull {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmull_lane_s32(int32x2_t a, int32x2_t v) {
// CHECK: test_vmull_lane_s32
return vmull_lane_s32(a, v, 1);
// CHECK: smull {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
uint32x4_t test_vmull_lane_u16(uint16x4_t a, uint16x4_t v) {
// CHECK: test_vmull_lane_u16
return vmull_lane_u16(a, v, 1);
// CHECK: umull {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
uint64x2_t test_vmull_lane_u32(uint32x2_t a, uint32x2_t v) {
// CHECK: test_vmull_lane_u32
return vmull_lane_u32(a, v, 1);
// CHECK: umull {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmull_high_lane_s16(int16x8_t a, int16x4_t v) {
// CHECK: test_vmull_high_lane_s16
return vmull_high_lane_s16(a, v, 1);
// CHECK: smull2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmull_high_lane_s32(int32x4_t a, int32x2_t v) {
// CHECK: test_vmull_high_lane_s32
return vmull_high_lane_s32(a, v, 1);
// CHECK: smull2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
uint32x4_t test_vmull_high_lane_u16(uint16x8_t a, uint16x4_t v) {
// CHECK: test_vmull_high_lane_u16
return vmull_high_lane_u16(a, v, 1);
// CHECK: umull2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
uint64x2_t test_vmull_high_lane_u32(uint32x4_t a, uint32x2_t v) {
// CHECK: test_vmull_high_lane_u32
return vmull_high_lane_u32(a, v, 1);
// CHECK: umull2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmull_laneq_s16(int16x4_t a, int16x8_t v) {
// CHECK: test_vmull_laneq_s16
return vmull_laneq_s16(a, v, 1);
// CHECK: smull {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmull_laneq_s32(int32x2_t a, int32x4_t v) {
// CHECK: test_vmull_laneq_s32
return vmull_laneq_s32(a, v, 1);
// CHECK: smull {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
uint32x4_t test_vmull_laneq_u16(uint16x4_t a, uint16x8_t v) {
// CHECK: test_vmull_laneq_u16
return vmull_laneq_u16(a, v, 1);
// CHECK: umull {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
uint64x2_t test_vmull_laneq_u32(uint32x2_t a, uint32x4_t v) {
// CHECK: test_vmull_laneq_u32
return vmull_laneq_u32(a, v, 1);
// CHECK: umull {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vmull_high_laneq_s16(int16x8_t a, int16x8_t v) {
// CHECK: test_vmull_high_laneq_s16
return vmull_high_laneq_s16(a, v, 1);
// CHECK: smull2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vmull_high_laneq_s32(int32x4_t a, int32x4_t v) {
// CHECK: test_vmull_high_laneq_s32
return vmull_high_laneq_s32(a, v, 1);
// CHECK: smull2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
uint32x4_t test_vmull_high_laneq_u16(uint16x8_t a, uint16x8_t v) {
// CHECK: test_vmull_high_laneq_u16
return vmull_high_laneq_u16(a, v, 1);
// CHECK: umull2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
uint64x2_t test_vmull_high_laneq_u32(uint32x4_t a, uint32x4_t v) {
// CHECK: test_vmull_high_laneq_u32
return vmull_high_laneq_u32(a, v, 1);
// CHECK: umull2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmlal_lane_s16(int32x4_t a, int16x4_t b, int16x4_t v) {
// CHECK: test_vqdmlal_lane_s16
return vqdmlal_lane_s16(a, b, v, 1);
// CHECK: sqdmlal {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vqdmlal_lane_s32(int64x2_t a, int32x2_t b, int32x2_t v) {
// CHECK: test_vqdmlal_lane_s32
return vqdmlal_lane_s32(a, b, v, 1);
// CHECK: sqdmlal {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmlal_high_lane_s16(int32x4_t a, int16x8_t b, int16x4_t v) {
// CHECK: test_vqdmlal_high_lane_s16
return vqdmlal_high_lane_s16(a, b, v, 1);
// CHECK: sqdmlal2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vqdmlal_high_lane_s32(int64x2_t a, int32x4_t b, int32x2_t v) {
// CHECK: test_vqdmlal_high_lane_s32
return vqdmlal_high_lane_s32(a, b, v, 1);
// CHECK: sqdmlal2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmlsl_lane_s16(int32x4_t a, int16x4_t b, int16x4_t v) {
// CHECK: test_vqdmlsl_lane_s16
return vqdmlsl_lane_s16(a, b, v, 1);
// CHECK: sqdmlsl {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vqdmlsl_lane_s32(int64x2_t a, int32x2_t b, int32x2_t v) {
// CHECK: test_vqdmlsl_lane_s32
return vqdmlsl_lane_s32(a, b, v, 1);
// CHECK: sqdmlsl {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmlsl_high_lane_s16(int32x4_t a, int16x8_t b, int16x4_t v) {
// CHECK: test_vqdmlsl_high_lane_s16
return vqdmlsl_high_lane_s16(a, b, v, 1);
// CHECK: sqdmlsl2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vqdmlsl_high_lane_s32(int64x2_t a, int32x4_t b, int32x2_t v) {
// CHECK: test_vqdmlsl_high_lane_s32
return vqdmlsl_high_lane_s32(a, b, v, 1);
// CHECK: sqdmlsl2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmull_lane_s16(int16x4_t a, int16x4_t v) {
// CHECK: test_vqdmull_lane_s16
return vqdmull_lane_s16(a, v, 1);
// CHECK: sqdmull {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vqdmull_lane_s32(int32x2_t a, int32x2_t v) {
// CHECK: test_vqdmull_lane_s32
return vqdmull_lane_s32(a, v, 1);
// CHECK: sqdmull {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmull_laneq_s16(int16x4_t a, int16x8_t v) {
// CHECK: test_vqdmull_laneq_s16
return vqdmull_laneq_s16(a, v, 1);
// CHECK: sqdmull {{v[0-9]+}}.4s, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vqdmull_laneq_s32(int32x2_t a, int32x4_t v) {
// CHECK: test_vqdmull_laneq_s32
return vqdmull_laneq_s32(a, v, 1);
// CHECK: sqdmull {{v[0-9]+}}.2d, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmull_high_lane_s16(int16x8_t a, int16x4_t v) {
// CHECK: test_vqdmull_high_lane_s16
return vqdmull_high_lane_s16(a, v, 1);
// CHECK: sqdmull2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vqdmull_high_lane_s32(int32x4_t a, int32x2_t v) {
// CHECK: test_vqdmull_high_lane_s32
return vqdmull_high_lane_s32(a, v, 1);
// CHECK: sqdmull2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmull_high_laneq_s16(int16x8_t a, int16x8_t v) {
// CHECK: test_vqdmull_high_laneq_s16
return vqdmull_high_laneq_s16(a, v, 1);
// CHECK: sqdmull2 {{v[0-9]+}}.4s, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int64x2_t test_vqdmull_high_laneq_s32(int32x4_t a, int32x4_t v) {
// CHECK: test_vqdmull_high_laneq_s32
return vqdmull_high_laneq_s32(a, v, 1);
// CHECK: sqdmull2 {{v[0-9]+}}.2d, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int16x4_t test_vqdmulh_lane_s16(int16x4_t a, int16x4_t v) {
// CHECK: test_vqdmulh_lane_s16
return vqdmulh_lane_s16(a, v, 1);
// CHECK: sqdmulh {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int16x8_t test_vqdmulhq_lane_s16(int16x8_t a, int16x4_t v) {
// CHECK: test_vqdmulhq_lane_s16
return vqdmulhq_lane_s16(a, v, 1);
// CHECK: sqdmulh {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int32x2_t test_vqdmulh_lane_s32(int32x2_t a, int32x2_t v) {
// CHECK: test_vqdmulh_lane_s32
return vqdmulh_lane_s32(a, v, 1);
// CHECK: sqdmulh {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqdmulhq_lane_s32(int32x4_t a, int32x2_t v) {
// CHECK: test_vqdmulhq_lane_s32
return vqdmulhq_lane_s32(a, v, 1);
// CHECK: sqdmulh {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
int16x4_t test_vqrdmulh_lane_s16(int16x4_t a, int16x4_t v) {
// CHECK: test_vqrdmulh_lane_s16
return vqrdmulh_lane_s16(a, v, 1);
// CHECK: sqrdmulh {{v[0-9]+}}.4h, {{v[0-9]+}}.4h, {{v[0-9]+}}.h[1]
}
int16x8_t test_vqrdmulhq_lane_s16(int16x8_t a, int16x4_t v) {
// CHECK: test_vqrdmulhq_lane_s16
return vqrdmulhq_lane_s16(a, v, 1);
// CHECK: sqrdmulh {{v[0-9]+}}.8h, {{v[0-9]+}}.8h, {{v[0-9]+}}.h[1]
}
int32x2_t test_vqrdmulh_lane_s32(int32x2_t a, int32x2_t v) {
// CHECK: test_vqrdmulh_lane_s32
return vqrdmulh_lane_s32(a, v, 1);
// CHECK: sqrdmulh {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
int32x4_t test_vqrdmulhq_lane_s32(int32x4_t a, int32x2_t v) {
// CHECK: test_vqrdmulhq_lane_s32
return vqrdmulhq_lane_s32(a, v, 1);
// CHECK: sqrdmulh {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float32x2_t test_vmul_lane_f32(float32x2_t a, float32x2_t v) {
// CHECK: test_vmul_lane_f32
return vmul_lane_f32(a, v, 1);
// CHECK: fmul {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
float64x1_t test_vmul_lane_f64(float64x1_t a, float64x1_t v) {
// CHECK: test_vmul_lane_f64
return vmul_lane_f64(a, v, 0);
// CHECK: fmul {{d[0-9]+}}, {{d[0-9]+}}, {{v[0-9]+}}.d[0]
}
float32x4_t test_vmulq_lane_f32(float32x4_t a, float32x2_t v) {
// CHECK: test_vmulq_lane_f32
return vmulq_lane_f32(a, v, 1);
// CHECK: fmul {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float64x2_t test_vmulq_lane_f64(float64x2_t a, float64x1_t v) {
// CHECK: test_vmulq_lane_f64
return vmulq_lane_f64(a, v, 0);
// CHECK: fmul {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[0]
}
float32x2_t test_vmul_laneq_f32(float32x2_t a, float32x4_t v) {
// CHECK: test_vmul_laneq_f32
return vmul_laneq_f32(a, v, 1);
// CHECK: fmul {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
float64x1_t test_vmul_laneq_f64_0(float64x1_t a, float64x2_t v) {
// CHECK: test_vmul_laneq_f64_0
return vmul_laneq_f64(a, v, 0);
// CHECK: fmul {{d[0-9]+}}, {{d[0-9]+}}, {{v[0-9]+}}.d[0]
}
float32x4_t test_vmulq_laneq_f32(float32x4_t a, float32x4_t v) {
// CHECK: test_vmulq_laneq_f32
return vmulq_laneq_f32(a, v, 1);
// CHECK: fmul {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float64x2_t test_vmulq_laneq_f64_0(float64x2_t a, float64x2_t v) {
// CHECK: test_vmulq_laneq_f64
return vmulq_laneq_f64(a, v, 0);
// CHECK: fmul {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[0]
}
float64x2_t test_vmulq_laneq_f64(float64x2_t a, float64x2_t v) {
// CHECK: test_vmulq_laneq_f64
return vmulq_laneq_f64(a, v, 1);
// CHECK: fmul {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[1]
}
float32x2_t test_vmulx_lane_f32(float32x2_t a, float32x2_t v) {
// CHECK: test_vmulx_lane_f32
return vmulx_lane_f32(a, v, 1);
// CHECK: fmulx {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
float32x4_t test_vmulxq_lane_f32(float32x4_t a, float32x2_t v) {
// CHECK: test_vmulxq_lane_f32
return vmulxq_lane_f32(a, v, 1);
// CHECK: fmulx {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float64x2_t test_vmulxq_lane_f64(float64x2_t a, float64x1_t v) {
// CHECK: test_vmulxq_lane_f64
return vmulxq_lane_f64(a, v, 0);
// CHECK: fmulx {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[0]
}
float32x2_t test_vmulx_laneq_f32(float32x2_t a, float32x4_t v) {
// CHECK: test_vmulx_laneq_f32
return vmulx_laneq_f32(a, v, 1);
// CHECK: fmulx {{v[0-9]+}}.2s, {{v[0-9]+}}.2s, {{v[0-9]+}}.s[1]
}
float32x4_t test_vmulxq_laneq_f32(float32x4_t a, float32x4_t v) {
// CHECK: test_vmulxq_laneq_f32
return vmulxq_laneq_f32(a, v, 1);
// CHECK: fmulx {{v[0-9]+}}.4s, {{v[0-9]+}}.4s, {{v[0-9]+}}.s[1]
}
float64x2_t test_vmulxq_laneq_f64_0(float64x2_t a, float64x2_t v) {
// CHECK: test_vmulxq_laneq_f64
return vmulxq_laneq_f64(a, v, 0);
// CHECK: fmulx {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[0]
}
float64x2_t test_vmulxq_laneq_f64(float64x2_t a, float64x2_t v) {
// CHECK: test_vmulxq_laneq_f64
return vmulxq_laneq_f64(a, v, 1);
// CHECK: fmulx {{v[0-9]+}}.2d, {{v[0-9]+}}.2d, {{v[0-9]+}}.d[1]
}