arm64 isel: in a couple places, use `xzr` as a source rather than loading zero into...
[valgrind.git] / VEX / priv / host_generic_simd128.h
blob842385f738c801fa9d71cdc1aa8b7b6d7783219b
2 /*---------------------------------------------------------------*/
3 /*--- begin host_generic_simd128.h ---*/
4 /*---------------------------------------------------------------*/
6 /*
7 This file is part of Valgrind, a dynamic binary instrumentation
8 framework.
10 Copyright (C) 2010-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 128-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 as clean helper functions from IR.
34 These will get called from generated code and therefore should be
35 well behaved -- no floating point or mmx insns, just straight
36 integer code.
38 Each function implements the correspondingly-named IR primop.
41 #ifndef __VEX_HOST_GENERIC_SIMD128_H
42 #define __VEX_HOST_GENERIC_SIMD128_H
44 #include "libvex_basictypes.h"
46 extern VEX_REGPARM(3)
47 void h_generic_calc_Mul32x4 ( /*OUT*/V128*, V128*, V128* );
48 extern VEX_REGPARM(3)
49 void h_generic_calc_Max32Sx4 ( /*OUT*/V128*, V128*, V128* );
50 extern VEX_REGPARM(3)
51 void h_generic_calc_Min32Sx4 ( /*OUT*/V128*, V128*, V128* );
52 extern VEX_REGPARM(3)
53 void h_generic_calc_Max32Ux4 ( /*OUT*/V128*, V128*, V128* );
54 extern VEX_REGPARM(3)
55 void h_generic_calc_Min32Ux4 ( /*OUT*/V128*, V128*, V128* );
56 extern VEX_REGPARM(3)
57 void h_generic_calc_Max16Ux8 ( /*OUT*/V128*, V128*, V128* );
58 extern VEX_REGPARM(3)
59 void h_generic_calc_Min16Ux8 ( /*OUT*/V128*, V128*, V128* );
60 extern VEX_REGPARM(3)
61 void h_generic_calc_Max8Sx16 ( /*OUT*/V128*, V128*, V128* );
62 extern VEX_REGPARM(3)
63 void h_generic_calc_Min8Sx16 ( /*OUT*/V128*, V128*, V128* );
64 extern VEX_REGPARM(3)
65 void h_generic_calc_CmpEQ64x2 ( /*OUT*/V128*, V128*, V128* );
66 extern VEX_REGPARM(3)
67 void h_generic_calc_CmpGT64Sx2 ( /*OUT*/V128*, V128*, V128* );
69 extern /*not-regparm*/
70 void h_generic_calc_SarN64x2 ( /*OUT*/V128*, V128*, UInt );
71 extern /*not-regparm*/
72 void h_generic_calc_SarN8x16 ( /*OUT*/V128*, V128*, UInt );
74 extern VEX_REGPARM(3)
75 void h_generic_calc_QNarrowBin32Sto16Ux8
76 ( /*OUT*/V128*, V128*, V128* );
77 extern VEX_REGPARM(3)
78 void h_generic_calc_NarrowBin16to8x16
79 ( /*OUT*/V128*, V128*, V128* );
80 extern VEX_REGPARM(3)
81 void h_generic_calc_NarrowBin32to16x8
82 ( /*OUT*/V128*, V128*, V128* );
84 extern VEX_REGPARM(3)
85 void h_generic_calc_Perm32x4 ( /*OUT*/V128*, V128*, V128* );
87 // This is correct and tested, but isn't used because we just generate
88 // PSHUFB on amd64 instead.
89 //extern VEX_REGPARM(3)
90 // void h_generic_calc_PermOrZero8x16 ( /*OUT*/V128*, V128*, V128* );
92 extern /*not-regparm*/
93 UInt h_generic_calc_GetMSBs8x16 ( ULong w64hi, ULong w64lo );
95 #endif /* ndef __VEX_HOST_GENERIC_SIMD128_H */
97 /*---------------------------------------------------------------*/
98 /*--- end host_generic_simd128.h ---*/
99 /*---------------------------------------------------------------*/