Add 469782 to NEWS
[valgrind.git] / VEX / priv / host_generic_simd256.c
blobf6b45774768fe2c80fc1a8c3d0d867a7a6eb6ea0
2 /*---------------------------------------------------------------*/
3 /*--- begin host_generic_simd256.c ---*/
4 /*---------------------------------------------------------------*/
6 /*
7 This file is part of Valgrind, a dynamic binary instrumentation
8 framework.
10 Copyright (C) 2012-2017 OpenWorks GbR
11 info@open-works.net
13 This program is free software; you can redistribute it and/or
14 modify it under the terms of the GNU General Public License as
15 published by the Free Software Foundation; either version 2 of the
16 License, or (at your option) any later version.
18 This program is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, see <http://www.gnu.org/licenses/>.
26 The GNU General Public License is contained in the file COPYING.
29 /* Generic helper functions for doing 256-bit SIMD arithmetic in cases
30 where the instruction selectors cannot generate code in-line.
31 These are purely back-end entities and cannot be seen/referenced
32 from IR. */
34 #include "libvex_basictypes.h"
35 #include "host_generic_simd256.h"
38 void VEX_REGPARM(3)
39 h_generic_calc_Perm32x8 ( /*OUT*/V256* res,
40 V256* argL, V256* argR )
42 res->w32[0] = argL->w32[ argR->w32[0] & 7 ];
43 res->w32[1] = argL->w32[ argR->w32[1] & 7 ];
44 res->w32[2] = argL->w32[ argR->w32[2] & 7 ];
45 res->w32[3] = argL->w32[ argR->w32[3] & 7 ];
46 res->w32[4] = argL->w32[ argR->w32[4] & 7 ];
47 res->w32[5] = argL->w32[ argR->w32[5] & 7 ];
48 res->w32[6] = argL->w32[ argR->w32[6] & 7 ];
49 res->w32[7] = argL->w32[ argR->w32[7] & 7 ];
53 /*---------------------------------------------------------------*/
54 /*--- end host_generic_simd256.c ---*/
55 /*---------------------------------------------------------------*/