2014-10-24 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / advsimd-intrinsics / vorn.c
blob6905cb663f424c9e102a25e751b0b64c3c7652fa
1 #define INSN_NAME vorn
2 #define TEST_MSG "VORN/VORNQ"
4 #include "binary_op.inc"
6 /* Expected results. */
7 VECT_VAR_DECL(expected,int,8,8) [] = { 0xfd, 0xfd, 0xff, 0xff,
8 0xfd, 0xfd, 0xff, 0xff };
9 VECT_VAR_DECL(expected,int,16,4) [] = { 0xfff3, 0xfff3, 0xfff3, 0xfff3 };
10 VECT_VAR_DECL(expected,int,32,2) [] = { 0xfffffffc, 0xfffffffd };
11 VECT_VAR_DECL(expected,int,64,1) [] = { 0xfffffffffffffffb };
12 VECT_VAR_DECL(expected,uint,8,8) [] = { 0xfb, 0xfb, 0xfb, 0xfb,
13 0xff, 0xff, 0xff, 0xff };
14 VECT_VAR_DECL(expected,uint,16,4) [] = { 0xfff1, 0xfff1, 0xfff3, 0xfff3 };
15 VECT_VAR_DECL(expected,uint,32,2) [] = { 0xfffffff7, 0xfffffff7 };
16 VECT_VAR_DECL(expected,uint,64,1) [] = { 0xfffffffffffffffd };
17 VECT_VAR_DECL(expected,poly,8,8) [] = { 0x33, 0x33, 0x33, 0x33,
18 0x33, 0x33, 0x33, 0x33 };
19 VECT_VAR_DECL(expected,poly,16,4) [] = { 0x3333, 0x3333, 0x3333, 0x3333 };
20 VECT_VAR_DECL(expected,hfloat,32,2) [] = { 0x33333333, 0x33333333 };
21 VECT_VAR_DECL(expected,int,8,16) [] = { 0xf9, 0xf9, 0xfb, 0xfb,
22 0xfd, 0xfd, 0xff, 0xff,
23 0xf9, 0xf9, 0xfb, 0xfb,
24 0xfd, 0xfd, 0xff, 0xff };
25 VECT_VAR_DECL(expected,int,16,8) [] = { 0xfff3, 0xfff3, 0xfff3, 0xfff3,
26 0xfff7, 0xfff7, 0xfff7, 0xfff7 };
27 VECT_VAR_DECL(expected,int,32,4) [] = { 0xfffffffd, 0xfffffffd,
28 0xffffffff, 0xffffffff };
29 VECT_VAR_DECL(expected,int,64,2) [] = { 0xfffffffffffffff7,
30 0xfffffffffffffff7 };
31 VECT_VAR_DECL(expected,uint,8,16) [] = { 0xf3, 0xf3, 0xf3, 0xf3,
32 0xf7, 0xf7, 0xf7, 0xf7,
33 0xfb, 0xfb, 0xfb, 0xfb,
34 0xff, 0xff, 0xff, 0xff };
35 VECT_VAR_DECL(expected,uint,16,8) [] = { 0xfffc, 0xfffd, 0xfffe, 0xffff,
36 0xfffc, 0xfffd, 0xfffe, 0xffff };
37 VECT_VAR_DECL(expected,uint,32,4) [] = { 0xfffffff8, 0xfffffff9,
38 0xfffffffa, 0xfffffffb };
39 VECT_VAR_DECL(expected,uint,64,2) [] = { 0xfffffffffffffffc,
40 0xfffffffffffffffd };
41 VECT_VAR_DECL(expected,poly,8,16) [] = { 0x33, 0x33, 0x33, 0x33,
42 0x33, 0x33, 0x33, 0x33,
43 0x33, 0x33, 0x33, 0x33,
44 0x33, 0x33, 0x33, 0x33 };
45 VECT_VAR_DECL(expected,poly,16,8) [] = { 0x3333, 0x3333, 0x3333, 0x3333,
46 0x3333, 0x3333, 0x3333, 0x3333 };
47 VECT_VAR_DECL(expected,hfloat,32,4) [] = { 0x33333333, 0x33333333,
48 0x33333333, 0x33333333 };