2015-05-19 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / advsimd-intrinsics / vqdmlal.c
blobc53a90a1a897de9e4a3e5df9f7c00839771f9ea8
1 #include <arm_neon.h>
2 #include "arm-neon-ref.h"
3 #include "compute-ref-data.h"
5 #define INSN_NAME vqdmlal
6 #define TEST_MSG "VQDMLAL"
8 /* Expected values of cumulative_saturation flag. */
9 int VECT_VAR(expected_cumulative_sat,int,32,4) = 0;
10 int VECT_VAR(expected_cumulative_sat,int,64,2) = 0;
12 /* Expected results. */
13 VECT_VAR_DECL(expected,int,32,4) [] = { 0x7c1e, 0x7c1f, 0x7c20, 0x7c21 };
14 VECT_VAR_DECL(expected,int,64,2) [] = { 0x7c1e, 0x7c1f };
16 /* Expected values of cumulative_saturation flag when saturation
17 occurs. */
18 int VECT_VAR(expected_cumulative_sat2,int,32,4) = 1;
19 int VECT_VAR(expected_cumulative_sat2,int,64,2) = 1;
21 /* Expected results when saturation occurs. */
22 VECT_VAR_DECL(expected2,int,32,4) [] = { 0x7fffffef, 0x7ffffff0,
23 0x7ffffff1, 0x7ffffff2 };
24 VECT_VAR_DECL(expected2,int,64,2) [] = { 0x7fffffffffffffef,
25 0x7ffffffffffffff0 };
27 #include "vqdmlXl.inc"