1*f3782652STreehugger Robot /*
2*f3782652STreehugger Robot
3*f3782652STreehugger Robot Copyright (c) 2009, 2010, 2011, 2013 STMicroelectronics
4*f3782652STreehugger Robot Written by Christophe Lyon
5*f3782652STreehugger Robot
6*f3782652STreehugger Robot Permission is hereby granted, free of charge, to any person obtaining a copy
7*f3782652STreehugger Robot of this software and associated documentation files (the "Software"), to deal
8*f3782652STreehugger Robot in the Software without restriction, including without limitation the rights
9*f3782652STreehugger Robot to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10*f3782652STreehugger Robot copies of the Software, and to permit persons to whom the Software is
11*f3782652STreehugger Robot furnished to do so, subject to the following conditions:
12*f3782652STreehugger Robot
13*f3782652STreehugger Robot The above copyright notice and this permission notice shall be included in
14*f3782652STreehugger Robot all copies or substantial portions of the Software.
15*f3782652STreehugger Robot
16*f3782652STreehugger Robot THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17*f3782652STreehugger Robot IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18*f3782652STreehugger Robot FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19*f3782652STreehugger Robot AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20*f3782652STreehugger Robot LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21*f3782652STreehugger Robot OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22*f3782652STreehugger Robot THE SOFTWARE.
23*f3782652STreehugger Robot
24*f3782652STreehugger Robot */
25*f3782652STreehugger Robot
26*f3782652STreehugger Robot #define INSN_NAME vceq
27*f3782652STreehugger Robot #define TEST_MSG "VCEQ/VCEQQ"
28*f3782652STreehugger Robot
29*f3782652STreehugger Robot /* Extra tests for _p8 variants, which exist only for vceq */
30*f3782652STreehugger Robot void exec_vceq_p8(void);
31*f3782652STreehugger Robot #define EXTRA_TESTS exec_vceq_p8
32*f3782652STreehugger Robot
33*f3782652STreehugger Robot #include "ref_v_comp_op.c"
34*f3782652STreehugger Robot
exec_vceq_p8(void)35*f3782652STreehugger Robot void exec_vceq_p8(void)
36*f3782652STreehugger Robot {
37*f3782652STreehugger Robot int i; /* Used by DUMP() */
38*f3782652STreehugger Robot
39*f3782652STreehugger Robot DECL_VARIABLE(vector, poly, 8, 8);
40*f3782652STreehugger Robot DECL_VARIABLE(vector, poly, 8, 16);
41*f3782652STreehugger Robot
42*f3782652STreehugger Robot DECL_VARIABLE(vector2, poly, 8, 8);
43*f3782652STreehugger Robot DECL_VARIABLE(vector2, poly, 8, 16);
44*f3782652STreehugger Robot
45*f3782652STreehugger Robot DECL_VARIABLE(vector_res, uint, 8, 8);
46*f3782652STreehugger Robot DECL_VARIABLE(vector_res, uint, 8, 16);
47*f3782652STreehugger Robot
48*f3782652STreehugger Robot clean_results ();
49*f3782652STreehugger Robot
50*f3782652STreehugger Robot VLOAD(vector, buffer, , poly, p, 8, 8);
51*f3782652STreehugger Robot VLOAD(vector, buffer, q, poly, p, 8, 16);
52*f3782652STreehugger Robot
53*f3782652STreehugger Robot VDUP(vector2, , poly, p, 8, 8, 0xF3);
54*f3782652STreehugger Robot VDUP(vector2, q, poly, p, 8, 16, 0xF4);
55*f3782652STreehugger Robot
56*f3782652STreehugger Robot fprintf(ref_file, "\n%s output:\n", TEST_MSG " p8");
57*f3782652STreehugger Robot TEST_VCOMP(INSN_NAME, , poly, p, uint, 8, 8);
58*f3782652STreehugger Robot TEST_VCOMP(INSN_NAME, q, poly, p, uint, 8, 16);
59*f3782652STreehugger Robot
60*f3782652STreehugger Robot DUMP(TEST_MSG, uint, 8, 8, PRIx8);
61*f3782652STreehugger Robot DUMP(TEST_MSG, uint, 8, 16, PRIx8);
62*f3782652STreehugger Robot
63*f3782652STreehugger Robot }
64