annotate gcc/config/powerpcspe/paired.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PowerPC 750CL user include file.
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 Copyright (C) 2007-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 Contributed by Revital Eres (eres@il.ibm.com).
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 This file is part of GCC.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 GCC is free software; you can redistribute it and/or modify it
kono
parents:
diff changeset
8 under the terms of the GNU General Public License as published
kono
parents:
diff changeset
9 by the Free Software Foundation; either version 3, or (at your
kono
parents:
diff changeset
10 option) any later version.
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 GCC is distributed in the hope that it will be useful, but WITHOUT
kono
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
kono
parents:
diff changeset
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
kono
parents:
diff changeset
15 License for more details.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 Under Section 7 of GPL version 3, you are granted additional
kono
parents:
diff changeset
18 permissions described in the GCC Runtime Library Exception, version
kono
parents:
diff changeset
19 3.1, as published by the Free Software Foundation.
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 You should have received a copy of the GNU General Public License and
kono
parents:
diff changeset
22 a copy of the GCC Runtime Library Exception along with this program;
kono
parents:
diff changeset
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
kono
parents:
diff changeset
24 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 #ifndef _PAIRED_H
kono
parents:
diff changeset
27 #define _PAIRED_H
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 #define vector __attribute__((vector_size(8)))
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 #define paired_msub __builtin_paired_msub
kono
parents:
diff changeset
32 #define paired_madd __builtin_paired_madd
kono
parents:
diff changeset
33 #define paired_nmsub __builtin_paired_nmsub
kono
parents:
diff changeset
34 #define paired_nmadd __builtin_paired_nmadd
kono
parents:
diff changeset
35 #define paired_sum0 __builtin_paired_sum0
kono
parents:
diff changeset
36 #define paired_sum1 __builtin_paired_sum1
kono
parents:
diff changeset
37 #define paired_div __builtin_paired_divv2sf3
kono
parents:
diff changeset
38 #define paired_add __builtin_paired_addv2sf3
kono
parents:
diff changeset
39 #define paired_sub __builtin_paired_subv2sf3
kono
parents:
diff changeset
40 #define paired_mul __builtin_paired_mulv2sf3
kono
parents:
diff changeset
41 #define paired_muls0 __builtin_paired_muls0
kono
parents:
diff changeset
42 #define paired_muls1 __builtin_paired_muls1
kono
parents:
diff changeset
43 #define paired_madds0 __builtin_paired_madds0
kono
parents:
diff changeset
44 #define paired_madds1 __builtin_paired_madds1
kono
parents:
diff changeset
45 #define paired_merge00 __builtin_paired_merge00
kono
parents:
diff changeset
46 #define paired_merge01 __builtin_paired_merge01
kono
parents:
diff changeset
47 #define paired_merge10 __builtin_paired_merge10
kono
parents:
diff changeset
48 #define paired_merge11 __builtin_paired_merge11
kono
parents:
diff changeset
49 #define paired_abs __builtin_paired_absv2sf2
kono
parents:
diff changeset
50 #define paired_nabs __builtin_paired_nabsv2sf2
kono
parents:
diff changeset
51 #define paired_neg __builtin_paired_negv2sf2
kono
parents:
diff changeset
52 #define paired_sqrt __builtin_paired_sqrtv2sf2
kono
parents:
diff changeset
53 #define paired_res __builtin_paired_resv2sf2
kono
parents:
diff changeset
54 #define paired_stx __builtin_paired_stx
kono
parents:
diff changeset
55 #define paired_lx __builtin_paired_lx
kono
parents:
diff changeset
56 #define paired_cmpu0 __builtin_paired_cmpu0
kono
parents:
diff changeset
57 #define paired_cmpu1 __builtin_paired_cmpu1
kono
parents:
diff changeset
58 #define paired_sel __builtin_paired_selv2sf4
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 /* Condition register codes for Paired predicates. */
kono
parents:
diff changeset
61 #define LT 0
kono
parents:
diff changeset
62 #define GT 1
kono
parents:
diff changeset
63 #define EQ 2
kono
parents:
diff changeset
64 #define UN 3
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 #define paired_cmpu0_un(a,b) __builtin_paired_cmpu0 (UN, (a), (b))
kono
parents:
diff changeset
67 #define paired_cmpu0_eq(a,b) __builtin_paired_cmpu0 (EQ, (a), (b))
kono
parents:
diff changeset
68 #define paired_cmpu0_lt(a,b) __builtin_paired_cmpu0 (LT, (a), (b))
kono
parents:
diff changeset
69 #define paired_cmpu0_gt(a,b) __builtin_paired_cmpu0 (GT, (a), (b))
kono
parents:
diff changeset
70 #define paired_cmpu1_un(a,b) __builtin_paired_cmpu1 (UN, (a), (b))
kono
parents:
diff changeset
71 #define paired_cmpu1_eq(a,b) __builtin_paired_cmpu1 (EQ, (a), (b))
kono
parents:
diff changeset
72 #define paired_cmpu1_lt(a,b) __builtin_paired_cmpu1 (LT, (a), (b))
kono
parents:
diff changeset
73 #define paired_cmpu1_gt(a,b) __builtin_paired_cmpu1 (GT, (a), (b))
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 #endif /* _PAIRED_H */