public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Add available-everywhere and ancient builtins
@ 2021-06-15 17:18 William Schmidt
0 siblings, 0 replies; 7+ messages in thread
From: William Schmidt @ 2021-06-15 17:18 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f33420a1f1476b22802e12bf998a5d1b5a30f92f
commit f33420a1f1476b22802e12bf998a5d1b5a30f92f
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Mon Jun 7 15:51:09 2021 -0500
rs6000: Add available-everywhere and ancient builtins
2021-06-07 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-builtin-new.def: Add always, power5, and
power6 stanzas.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 72 ++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 974cdc8c37c..ca694be1ac3 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -184,6 +184,78 @@
+; Builtins that have been around since time immemorial or are just
+; considered available everywhere.
+[always]
+ void __builtin_cpu_init ();
+ CPU_INIT nothing {cpu}
+
+ bool __builtin_cpu_is (string);
+ CPU_IS nothing {cpu}
+
+ bool __builtin_cpu_supports (string);
+ CPU_SUPPORTS nothing {cpu}
+
+ unsigned long long __builtin_ppc_get_timebase ();
+ GET_TB rs6000_get_timebase {}
+
+ double __builtin_mffs ();
+ MFFS rs6000_mffs {}
+
+; This will break for long double == _Float128. libgcc history.
+ const long double __builtin_pack_longdouble (double, double);
+ PACK_TF packtf {}
+
+ unsigned long __builtin_ppc_mftb ();
+ MFTB rs6000_mftb_di {32bit}
+
+ void __builtin_mtfsb0 (const int<5>);
+ MTFSB0 rs6000_mtfsb0 {}
+
+ void __builtin_mtfsb1 (const int<5>);
+ MTFSB1 rs6000_mtfsb1 {}
+
+ void __builtin_mtfsf (const int<8>, double);
+ MTFSF rs6000_mtfsf {}
+
+ const __ibm128 __builtin_pack_ibm128 (double, double);
+ PACK_IF packif {}
+
+ void __builtin_set_fpscr_rn (const int[0,3]);
+ SET_FPSCR_RN rs6000_set_fpscr_rn {}
+
+ const double __builtin_unpack_ibm128 (__ibm128, const int<1>);
+ UNPACK_IF unpackif {}
+
+; This will break for long double == _Float128. libgcc history.
+ const double __builtin_unpack_longdouble (long double, const int<1>);
+ UNPACK_TF unpacktf {}
+
+
+; Builtins that have been around just about forever, but not quite.
+[power5]
+ fpmath double __builtin_recipdiv (double, double);
+ RECIP recipdf3 {}
+
+ fpmath float __builtin_recipdivf (float, float);
+ RECIPF recipsf3 {}
+
+ fpmath double __builtin_rsqrt (double);
+ RSQRT rsqrtdf2 {}
+
+ fpmath float __builtin_rsqrtf (float);
+ RSQRTF rsqrtsf2 {}
+
+
+; Power6 builtins.
+[power6]
+ const signed long __builtin_p6_cmpb (signed long, signed long);
+ CMPB cmpbdi3 {}
+
+ const signed int __builtin_p6_cmpb_32 (signed int, signed int);
+ CMPB_32 cmpbsi3 {}
+
+
; AltiVec builtins.
[altivec]
const vsc __builtin_altivec_abs_v16qi (vsc);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Add available-everywhere and ancient builtins
@ 2021-07-29 14:45 William Schmidt
0 siblings, 0 replies; 7+ messages in thread
From: William Schmidt @ 2021-07-29 14:45 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:54841e0e6324ff041ff9c2c383ec29640dd3f048
commit 54841e0e6324ff041ff9c2c383ec29640dd3f048
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Mon Jun 7 15:51:09 2021 -0500
rs6000: Add available-everywhere and ancient builtins
2021-06-07 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-builtin-new.def: Add always, power5, and
power6 stanzas.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 72 ++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 974cdc8c37c..ca694be1ac3 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -184,6 +184,78 @@
+; Builtins that have been around since time immemorial or are just
+; considered available everywhere.
+[always]
+ void __builtin_cpu_init ();
+ CPU_INIT nothing {cpu}
+
+ bool __builtin_cpu_is (string);
+ CPU_IS nothing {cpu}
+
+ bool __builtin_cpu_supports (string);
+ CPU_SUPPORTS nothing {cpu}
+
+ unsigned long long __builtin_ppc_get_timebase ();
+ GET_TB rs6000_get_timebase {}
+
+ double __builtin_mffs ();
+ MFFS rs6000_mffs {}
+
+; This will break for long double == _Float128. libgcc history.
+ const long double __builtin_pack_longdouble (double, double);
+ PACK_TF packtf {}
+
+ unsigned long __builtin_ppc_mftb ();
+ MFTB rs6000_mftb_di {32bit}
+
+ void __builtin_mtfsb0 (const int<5>);
+ MTFSB0 rs6000_mtfsb0 {}
+
+ void __builtin_mtfsb1 (const int<5>);
+ MTFSB1 rs6000_mtfsb1 {}
+
+ void __builtin_mtfsf (const int<8>, double);
+ MTFSF rs6000_mtfsf {}
+
+ const __ibm128 __builtin_pack_ibm128 (double, double);
+ PACK_IF packif {}
+
+ void __builtin_set_fpscr_rn (const int[0,3]);
+ SET_FPSCR_RN rs6000_set_fpscr_rn {}
+
+ const double __builtin_unpack_ibm128 (__ibm128, const int<1>);
+ UNPACK_IF unpackif {}
+
+; This will break for long double == _Float128. libgcc history.
+ const double __builtin_unpack_longdouble (long double, const int<1>);
+ UNPACK_TF unpacktf {}
+
+
+; Builtins that have been around just about forever, but not quite.
+[power5]
+ fpmath double __builtin_recipdiv (double, double);
+ RECIP recipdf3 {}
+
+ fpmath float __builtin_recipdivf (float, float);
+ RECIPF recipsf3 {}
+
+ fpmath double __builtin_rsqrt (double);
+ RSQRT rsqrtdf2 {}
+
+ fpmath float __builtin_rsqrtf (float);
+ RSQRTF rsqrtsf2 {}
+
+
+; Power6 builtins.
+[power6]
+ const signed long __builtin_p6_cmpb (signed long, signed long);
+ CMPB cmpbdi3 {}
+
+ const signed int __builtin_p6_cmpb_32 (signed int, signed int);
+ CMPB_32 cmpbsi3 {}
+
+
; AltiVec builtins.
[altivec]
const vsc __builtin_altivec_abs_v16qi (vsc);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Add available-everywhere and ancient builtins
@ 2021-06-25 16:17 William Schmidt
0 siblings, 0 replies; 7+ messages in thread
From: William Schmidt @ 2021-06-25 16:17 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:22ba3abd36af0d92a2e827a9dea466cacaf6a81d
commit 22ba3abd36af0d92a2e827a9dea466cacaf6a81d
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Mon Jun 7 15:51:09 2021 -0500
rs6000: Add available-everywhere and ancient builtins
2021-06-07 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-builtin-new.def: Add always, power5, and
power6 stanzas.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 72 ++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 974cdc8c37c..ca694be1ac3 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -184,6 +184,78 @@
+; Builtins that have been around since time immemorial or are just
+; considered available everywhere.
+[always]
+ void __builtin_cpu_init ();
+ CPU_INIT nothing {cpu}
+
+ bool __builtin_cpu_is (string);
+ CPU_IS nothing {cpu}
+
+ bool __builtin_cpu_supports (string);
+ CPU_SUPPORTS nothing {cpu}
+
+ unsigned long long __builtin_ppc_get_timebase ();
+ GET_TB rs6000_get_timebase {}
+
+ double __builtin_mffs ();
+ MFFS rs6000_mffs {}
+
+; This will break for long double == _Float128. libgcc history.
+ const long double __builtin_pack_longdouble (double, double);
+ PACK_TF packtf {}
+
+ unsigned long __builtin_ppc_mftb ();
+ MFTB rs6000_mftb_di {32bit}
+
+ void __builtin_mtfsb0 (const int<5>);
+ MTFSB0 rs6000_mtfsb0 {}
+
+ void __builtin_mtfsb1 (const int<5>);
+ MTFSB1 rs6000_mtfsb1 {}
+
+ void __builtin_mtfsf (const int<8>, double);
+ MTFSF rs6000_mtfsf {}
+
+ const __ibm128 __builtin_pack_ibm128 (double, double);
+ PACK_IF packif {}
+
+ void __builtin_set_fpscr_rn (const int[0,3]);
+ SET_FPSCR_RN rs6000_set_fpscr_rn {}
+
+ const double __builtin_unpack_ibm128 (__ibm128, const int<1>);
+ UNPACK_IF unpackif {}
+
+; This will break for long double == _Float128. libgcc history.
+ const double __builtin_unpack_longdouble (long double, const int<1>);
+ UNPACK_TF unpacktf {}
+
+
+; Builtins that have been around just about forever, but not quite.
+[power5]
+ fpmath double __builtin_recipdiv (double, double);
+ RECIP recipdf3 {}
+
+ fpmath float __builtin_recipdivf (float, float);
+ RECIPF recipsf3 {}
+
+ fpmath double __builtin_rsqrt (double);
+ RSQRT rsqrtdf2 {}
+
+ fpmath float __builtin_rsqrtf (float);
+ RSQRTF rsqrtsf2 {}
+
+
+; Power6 builtins.
+[power6]
+ const signed long __builtin_p6_cmpb (signed long, signed long);
+ CMPB cmpbdi3 {}
+
+ const signed int __builtin_p6_cmpb_32 (signed int, signed int);
+ CMPB_32 cmpbsi3 {}
+
+
; AltiVec builtins.
[altivec]
const vsc __builtin_altivec_abs_v16qi (vsc);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Add available-everywhere and ancient builtins
@ 2021-04-26 20:50 William Schmidt
0 siblings, 0 replies; 7+ messages in thread
From: William Schmidt @ 2021-04-26 20:50 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:59f597eb7f2b48b5ce7286bb67dfcd933d3e1a16
commit 59f597eb7f2b48b5ce7286bb67dfcd933d3e1a16
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Fri Apr 2 16:47:00 2021 -0500
rs6000: Add available-everywhere and ancient builtins
2021-04-02 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-builtin-new.def: Add always, power5, and
power6 stanzas.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 72 ++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index eface30455e..0dc2cd2c99e 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -184,6 +184,78 @@
+; Builtins that have been around since time immemorial or are just
+; considered available everywhere.
+[always]
+ void __builtin_cpu_init ();
+ CPU_INIT nothing {cpu}
+
+ bool __builtin_cpu_is (string);
+ CPU_IS nothing {cpu}
+
+ bool __builtin_cpu_supports (string);
+ CPU_SUPPORTS nothing {cpu}
+
+ unsigned long long __builtin_ppc_get_timebase ();
+ GET_TB rs6000_get_timebase {}
+
+ double __builtin_mffs ();
+ MFFS rs6000_mffs {}
+
+ unsigned long __builtin_ppc_mftb ();
+ MFTB rs6000_mftb_di {32bit}
+
+ void __builtin_mtfsb0 (const int<5>);
+ MTFSB0 rs6000_mtfsb0 {}
+
+ void __builtin_mtfsb1 (const int<5>);
+ MTFSB1 rs6000_mtfsb1 {}
+
+ void __builtin_mtfsf (const int<8>, double);
+ MTFSF rs6000_mtfsf {}
+
+ const __ibm128 __builtin_pack_ibm128 (double, double);
+ PACK_IF packif {}
+
+ void __builtin_set_fpscr_rn (const int[0,3]);
+ SET_FPSCR_RN rs6000_set_fpscr_rn {}
+
+ const double __builtin_unpack_ibm128 (__ibm128, const int<1>);
+ UNPACK_IF unpackif {}
+
+
+; Builtins that have been around just about forever, but not quite.
+[power5]
+; This will break for long double == _Float128. libgcc history.
+ const long double __builtin_pack_longdouble (double, double);
+ PACK_TF packtf {}
+
+ fpmath double __builtin_recipdiv (double, double);
+ RECIP recipdf3 {}
+
+ fpmath float __builtin_recipdivf (float, float);
+ RECIPF recipsf3 {}
+
+ fpmath double __builtin_rsqrt (double);
+ RSQRT rsqrtdf2 {}
+
+ fpmath float __builtin_rsqrtf (float);
+ RSQRTF rsqrtsf2 {}
+
+; This will break for long double == _Float128. libgcc history.
+ const double __builtin_unpack_longdouble (long double, const int<1>);
+ UNPACK_TF unpacktf {}
+
+
+; Power6 builtins.
+[power6]
+ const signed long __builtin_p6_cmpb (signed long, signed long);
+ CMPB cmpbdi3 {}
+
+ const signed int __builtin_p6_cmpb_32 (signed int, signed int);
+ CMPB_32 cmpbsi3 {}
+
+
; AltiVec builtins.
[altivec]
const vsc __builtin_altivec_abs_v16qi (vsc);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Add available-everywhere and ancient builtins
@ 2021-04-02 22:10 William Schmidt
0 siblings, 0 replies; 7+ messages in thread
From: William Schmidt @ 2021-04-02 22:10 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c85d693357bb25c817ef95241b4db386dcf1aee2
commit c85d693357bb25c817ef95241b4db386dcf1aee2
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Fri Apr 2 16:47:00 2021 -0500
rs6000: Add available-everywhere and ancient builtins
2021-04-02 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-builtin-new.def: Add always, power5, and
power6 stanzas.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 72 ++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index eface30455e..0dc2cd2c99e 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -184,6 +184,78 @@
+; Builtins that have been around since time immemorial or are just
+; considered available everywhere.
+[always]
+ void __builtin_cpu_init ();
+ CPU_INIT nothing {cpu}
+
+ bool __builtin_cpu_is (string);
+ CPU_IS nothing {cpu}
+
+ bool __builtin_cpu_supports (string);
+ CPU_SUPPORTS nothing {cpu}
+
+ unsigned long long __builtin_ppc_get_timebase ();
+ GET_TB rs6000_get_timebase {}
+
+ double __builtin_mffs ();
+ MFFS rs6000_mffs {}
+
+ unsigned long __builtin_ppc_mftb ();
+ MFTB rs6000_mftb_di {32bit}
+
+ void __builtin_mtfsb0 (const int<5>);
+ MTFSB0 rs6000_mtfsb0 {}
+
+ void __builtin_mtfsb1 (const int<5>);
+ MTFSB1 rs6000_mtfsb1 {}
+
+ void __builtin_mtfsf (const int<8>, double);
+ MTFSF rs6000_mtfsf {}
+
+ const __ibm128 __builtin_pack_ibm128 (double, double);
+ PACK_IF packif {}
+
+ void __builtin_set_fpscr_rn (const int[0,3]);
+ SET_FPSCR_RN rs6000_set_fpscr_rn {}
+
+ const double __builtin_unpack_ibm128 (__ibm128, const int<1>);
+ UNPACK_IF unpackif {}
+
+
+; Builtins that have been around just about forever, but not quite.
+[power5]
+; This will break for long double == _Float128. libgcc history.
+ const long double __builtin_pack_longdouble (double, double);
+ PACK_TF packtf {}
+
+ fpmath double __builtin_recipdiv (double, double);
+ RECIP recipdf3 {}
+
+ fpmath float __builtin_recipdivf (float, float);
+ RECIPF recipsf3 {}
+
+ fpmath double __builtin_rsqrt (double);
+ RSQRT rsqrtdf2 {}
+
+ fpmath float __builtin_rsqrtf (float);
+ RSQRTF rsqrtsf2 {}
+
+; This will break for long double == _Float128. libgcc history.
+ const double __builtin_unpack_longdouble (long double, const int<1>);
+ UNPACK_TF unpacktf {}
+
+
+; Power6 builtins.
+[power6]
+ const signed long __builtin_p6_cmpb (signed long, signed long);
+ CMPB cmpbdi3 {}
+
+ const signed int __builtin_p6_cmpb_32 (signed int, signed int);
+ CMPB_32 cmpbsi3 {}
+
+
; AltiVec builtins.
[altivec]
const vsc __builtin_altivec_abs_v16qi (vsc);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Add available-everywhere and ancient builtins
@ 2021-04-01 19:49 William Schmidt
0 siblings, 0 replies; 7+ messages in thread
From: William Schmidt @ 2021-04-01 19:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5b7c820b220f3b1631bb0cb94a497d87c32848e2
commit 5b7c820b220f3b1631bb0cb94a497d87c32848e2
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Thu Apr 1 13:49:05 2021 -0500
rs6000: Add available-everywhere and ancient builtins
2021-04-01 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-builtin-new.def: Add always, power5, and
power6 stanzas.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 75 ++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 696f48c4311..43e4f79ddb8 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -178,6 +178,81 @@
+; Builtins that have been around since time immemorial or are just
+; considered available everywhere.
+[always]
+ void __builtin_cpu_init ();
+ CPU_INIT nothing {cpu}
+
+ bool __builtin_cpu_is (string);
+ CPU_IS nothing {cpu}
+
+ bool __builtin_cpu_supports (string);
+ CPU_SUPPORTS nothing {cpu}
+
+ unsigned long long __builtin_ppc_get_timebase ();
+ GET_TB rs6000_get_timebase {}
+
+ double __builtin_mffs ();
+ MFFS rs6000_mffs {}
+
+; This one requires special handling at expand time; it should be
+; expanded to rs6000_mftb_di in 64-bit mode, and rs6000_mftb_si in
+; 32-bit mode. Use of "long" for this builtin is sanctioned.
+ unsigned long __builtin_ppc_mftb ();
+ MFTB rs6000_mftb_di {32bit}
+
+ void __builtin_mtfsb0 (const int<5>);
+ MTFSB0 rs6000_mtfsb0 {}
+
+ void __builtin_mtfsb1 (const int<5>);
+ MTFSB1 rs6000_mtfsb1 {}
+
+ void __builtin_mtfsf (const int<8>, double);
+ MTFSF rs6000_mtfsf {}
+
+ const __ibm128 __builtin_pack_ibm128 (double, double);
+ PACK_IF packif {}
+
+ void __builtin_set_fpscr_rn (const int[0,3]);
+ SET_FPSCR_RN rs6000_set_fpscr_rn {}
+
+ const double __builtin_unpack_ibm128 (__ibm128, const int<1>);
+ UNPACK_IF unpackif {}
+
+
+; Builtins that have been around just about forever, but not quite.
+[power5]
+; This will break for long double == _Float128. libgcc history.
+ const long double __builtin_pack_longdouble (double, double);
+ PACK_TF packtf {}
+
+ fpmath double __builtin_recipdiv (double, double);
+ RECIP recipdf3 {}
+
+ fpmath float __builtin_recipdivf (float, float);
+ RECIPF recipsf3 {}
+
+ fpmath double __builtin_rsqrt (double);
+ RSQRT rsqrtdf2 {}
+
+ fpmath float __builtin_rsqrtf (float);
+ RSQRTF rsqrtsf2 {}
+
+; This will break for long double == _Float128. libgcc history.
+ const double __builtin_unpack_longdouble (long double, const int<1>);
+ UNPACK_TF unpacktf {}
+
+
+; Power6 builtins.
+[power6]
+ const signed long __builtin_p6_cmpb (signed long, signed long);
+ CMPB cmpbdi3 {}
+
+ const signed int __builtin_p6_cmpb_32 (signed int, signed int);
+ CMPB_32 cmpbsi3 {}
+
+
; AltiVec builtins.
[altivec]
const vsc __builtin_altivec_abs_v16qi (vsc);
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Add available-everywhere and ancient builtins
@ 2021-03-25 15:46 William Schmidt
0 siblings, 0 replies; 7+ messages in thread
From: William Schmidt @ 2021-03-25 15:46 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2b6685f8ce864676f12de320c9794e0f9d6471d4
commit 2b6685f8ce864676f12de320c9794e0f9d6471d4
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Mar 24 15:14:11 2021 -0500
rs6000: Add available-everywhere and ancient builtins
2021-03-24 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-builtin-new.def: Add always, power5, and
power6 stanzas.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 75 ++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index dfa768a8b50..b0570b4d316 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -178,6 +178,81 @@
+; Builtins that have been around since time immemorial or are just
+; considered available everywhere.
+[always]
+ void __builtin_cpu_init ();
+ CPU_INIT nothing {cpu}
+
+ bool __builtin_cpu_is (string);
+ CPU_IS nothing {cpu}
+
+ bool __builtin_cpu_supports (string);
+ CPU_SUPPORTS nothing {cpu}
+
+ unsigned long long __builtin_ppc_get_timebase ();
+ GET_TB rs6000_get_timebase {}
+
+ double __builtin_mffs ();
+ MFFS rs6000_mffs {}
+
+; This one requires special handling at expand time; it should be
+; expanded to rs6000_mftb_di in 64-bit mode, and rs6000_mftb_si in
+; 32-bit mode. Use of "long" for this builtin is sanctioned.
+ unsigned long __builtin_ppc_mftb ();
+ MFTB rs6000_mftb_di {32bit}
+
+ void __builtin_mtfsb0 (const int<5>);
+ MTFSB0 rs6000_mtfsb0 {}
+
+ void __builtin_mtfsb1 (const int<5>);
+ MTFSB1 rs6000_mtfsb1 {}
+
+ void __builtin_mtfsf (const int<8>, double);
+ MTFSF rs6000_mtfsf {}
+
+ const __ibm128 __builtin_pack_ibm128 (double, double);
+ PACK_IF packif {}
+
+ void __builtin_set_fpscr_rn (const int[0,3]);
+ SET_FPSCR_RN rs6000_set_fpscr_rn {}
+
+ const double __builtin_unpack_ibm128 (__ibm128, const int<1>);
+ UNPACK_IF unpackif {}
+
+
+; Builtins that have been around just about forever, but not quite.
+[power5]
+; This will break for long double == _Float128. libgcc history.
+ const long double __builtin_pack_longdouble (double, double);
+ PACK_TF packtf {}
+
+ fpmath double __builtin_recipdiv (double, double);
+ RECIP recipdf3 {}
+
+ fpmath float __builtin_recipdivf (float, float);
+ RECIPF recipsf3 {}
+
+ fpmath double __builtin_rsqrt (double);
+ RSQRT rsqrtdf2 {}
+
+ fpmath float __builtin_rsqrtf (float);
+ RSQRTF rsqrtsf2 {}
+
+; This will break for long double == _Float128. libgcc history.
+ const double __builtin_unpack_longdouble (long double, const int<1>);
+ UNPACK_TF unpacktf {}
+
+
+; Power6 builtins.
+[power6]
+ const unsigned long long __builtin_p6_cmpb (unsigned long long, unsigned long long);
+ CMPB cmpbdi3 {}
+
+ const unsigned int __builtin_p6_cmpb_32 (unsigned int, unsigned int);
+ CMPB_32 cmpbsi3 {}
+
+
; AltiVec builtins.
[altivec]
const vsc __builtin_altivec_abs_v16qi (vsc);
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-07-29 14:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 17:18 [gcc(refs/users/wschmidt/heads/builtins10)] rs6000: Add available-everywhere and ancient builtins William Schmidt
-- strict thread matches above, loose matches on Subject: below --
2021-07-29 14:45 William Schmidt
2021-06-25 16:17 William Schmidt
2021-04-26 20:50 William Schmidt
2021-04-02 22:10 William Schmidt
2021-04-01 19:49 William Schmidt
2021-03-25 15:46 William Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).