public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-09-14 13:59 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-09-14 13:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e17bf64db18311898e70acc538b8d28e46422ef6
commit e17bf64db18311898e70acc538b8d28e46422ef6
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
crypto, and htm builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 1338f543a6a..ce2e3c2476b 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2748,3 +2748,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[ieee128-hw]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[dfp]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[crypto]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[htm]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-10-29 19:51 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-10-29 19:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:814ec869c0a1cca98f9b8138e6577712f72b932f
commit 814ec869c0a1cca98f9b8138e6577712f72b932f
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
crypto, and htm builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 1338f543a6a..ce2e3c2476b 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2748,3 +2748,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[ieee128-hw]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[dfp]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[crypto]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[htm]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-10-27 16:29 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-10-27 16:29 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:fd00efb407fac979b5404c16544817066e4a5cd2
commit fd00efb407fac979b5404c16544817066e4a5cd2
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
crypto, and htm builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 1338f543a6a..ce2e3c2476b 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2748,3 +2748,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[ieee128-hw]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[dfp]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[crypto]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[htm]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-09-16 21:30 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-09-16 21:30 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3b4e2837194694257386ef3ebd7dc8b7ea0fa3d9
commit 3b4e2837194694257386ef3ebd7dc8b7ea0fa3d9
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
crypto, and htm builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 1338f543a6a..ce2e3c2476b 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2748,3 +2748,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[ieee128-hw]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[dfp]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[crypto]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[htm]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-08-28 20:08 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-08-28 20:08 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d180259523981e10810310ef391d3699d3a62289
commit d180259523981e10810310ef391d3699d3a62289
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
crypto, and htm builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 1338f543a6a..ce2e3c2476b 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2748,3 +2748,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[ieee128-hw]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[dfp]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[crypto]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[htm]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-08-20 16:39 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-08-20 16:39 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d360230c1384c7ea56b1a22043e3c006c5d8bc85
commit d360230c1384c7ea56b1a22043e3c006c5d8bc85
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
crypto, and htm builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 1338f543a6a..ce2e3c2476b 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2748,3 +2748,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[ieee128-hw]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[dfp]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[crypto]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[htm]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-08-18 18:45 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-08-18 18:45 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:81e2114bdbeed5fdd88f9f3d8fd75b39eefe064f
commit 81e2114bdbeed5fdd88f9f3d8fd75b39eefe064f
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
crypto, and htm builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 1338f543a6a..ce2e3c2476b 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2748,3 +2748,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[ieee128-hw]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[dfp]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[crypto]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[htm]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-07-27 18:48 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-07-27 18:48 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:dec424c5cac53c0a853bda4a579d0b789e1513ba
commit dec424c5cac53c0a853bda4a579d0b789e1513ba
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
crypto, and htm builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index 1338f543a6a..ce2e3c2476b 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2748,3 +2748,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[ieee128-hw]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[dfp]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[crypto]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[htm]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-07-17 17:23 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-07-17 17:23 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:34105e839f3b5984147acfafb6197c7d0c0dbca4
commit 34105e839f3b5984147acfafb6197c7d0c0dbca4
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-06-17 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add MASK_FLOAT128_HW,
MASK_DFP, MASK_CRYPTO, and MASK_HTM builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index d3e93f883fa..079063557bc 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2746,3 +2746,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[MASK_FLOAT128_HW]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[MASK_DFP]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[MASK_CRYPTO]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[MASK_HTM]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins
@ 2020-06-17 20:06 William Schmidt
0 siblings, 0 replies; 10+ messages in thread
From: William Schmidt @ 2020-06-17 20:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:47446d97286a7462349a12071811bd886b2d80de
commit 47446d97286a7462349a12071811bd886b2d80de
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Wed Jun 17 11:58:46 2020 -0500
rs6000: Add remaining builtins
2020-06-17 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-builtin-new.def: Add MASK_FLOAT128_HW,
MASK_DFP, MASK_CRYPTO, and MASK_HTM builtins.
Diff:
---
gcc/config/rs6000/rs6000-builtin-new.def | 217 +++++++++++++++++++++++++++++++
1 file changed, 217 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-builtin-new.def b/gcc/config/rs6000/rs6000-builtin-new.def
index d3e93f883fa..079063557bc 100644
--- a/gcc/config/rs6000/rs6000-builtin-new.def
+++ b/gcc/config/rs6000/rs6000-builtin-new.def
@@ -2746,3 +2746,220 @@
XL_LEN_R xl_len_r {}
+; Builtins requiring hardware support for IEEE-128 floating-point.
+[MASK_FLOAT128_HW]
+ fpmath _Float128 __builtin_vsx_addf128_round_to_odd (_Float128, _Float128);
+ ADDF128_ODD addkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_divf128_round_to_odd (_Float128, _Float128);
+ DIVF128_ODD divkf3_odd {}
+
+ fpmath _Float128 __builtin_vsx_fmaf128_round_to_odd (_Float128, _Float128, _Float128);
+ FMAF128_ODD fmakf4_odd {}
+
+ fpmath _Float128 __builtin_vsx_mulf128_round_to_odd (_Float128, _Float128);
+ MULF128_ODD mulkf3_odd {}
+
+ const unsigned long long __builtin_vsx_scalar_extract_expq (_Float128);
+ VSEEQP xsxexpqp_kf {}
+
+ const unsigned __int128 __builtin_vsx_scalar_extract_sigq (_Float128);
+ VSESQP xsxsigqp_kf {}
+
+ const signed int __buiiltin_vsx_scalar_cmp_exp_qp_eq (_Float128, _Float128);
+ VSCEQPEQ xscmpexpqp_eq_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_gt (_Float128, _Float128);
+ VSCEQPGT xscmpexpqp_gt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_lt (_Float128, _Float128);
+ VSCEQPLT xscmpexpqp_lt_kf {}
+
+ const signed int __builtin_vsx_scalar_cmp_exp_qp_unordered (_Float128, _Float128);
+ VSCEQPUO xscmpexpqp_unordered_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_q (unsigned __int128, unsigned long long);
+ VSIEQP xsiexpqp_kf {}
+
+ const _Float128 __builtin_vsx_scalar_insert_exp_qp (_Float128, unsigned long long);
+ VSIEQPF xsiexpqpf_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_data_class_qp (_Float128, signed int);
+ VSTDCQP xststdcqp_kf {}
+
+ const unsigned int __builtin_vsx_scalar_test_neg_qp (_Float128);
+ VSTDCNQP xststdcnegqp_kf {}
+
+ fpmath _Float128 __builtin_vsx_sqrtf128_round_to_odd (_Float128);
+ SQRTF128_ODD sqrtkf2_odd {}
+
+ fpmath _Float128 __builtin_vsx_subf128_round_to_odd (_Float128, _Float128);
+ SUBF128_ODD subkf3_odd {}
+
+ fpmath double __builtin_vsx_truncf128_round_to_odd (_Float128);
+ TRUNCF128_ODD trunckfdf2_odd {}
+
+
+
+; Decimal floating-point builtins.
+[MASK_DFP]
+ const _Decimal64 __builtin_ddedpd (const int<0,2>, _Decimal64);
+ DDEDPD dfp_ddedpd_dd {}
+
+ const _Decimal128 __builtin_ddedpdq (const int<0,2>, _Decimal128);
+ DDEDPDQ dfp_ddedpd_td {}
+
+ const _Decimal64 __builtin_denbcd (const int<1>, _Decimal64);
+ DENBCD dfp_denbcd_dd {}
+
+ const _Decimal128 __builtin_denbcdq (const int<1>, _Decimal128);
+ DENBCDQ dfp_denbcd_td {}
+
+ const _Decimal64 __builtin_diex (signed long long, _Decimal64);
+ DIEX dfp_diex_dd {}
+
+ const _Decimal128 __builtin_diexq (signed long long, _Decimal128);
+ DIEXQ dfp_diex_td {}
+
+ const _Decimal64 __builtin_dscli (_Decimal64, const int<6>);
+ DSCLI dfp_dscli_dd {}
+
+ const _Decimal128 __builtin_dscliq (_Decimal128, const int<6>);
+ DSCLIQ dfp_dscli_td {}
+
+ const _Decimal64 __builtin_dscri (_Decimal64, const int<6>);
+ DSCRI dfp_dscri_dd {}
+
+ const _Decimal128 __builtin_dscriq (_Decimal128, const int<6>);
+ DSCRIQ dfp_dscri_td {}
+
+ const signed long long __builtin_dxex (_Decimal64);
+ DXEX dfp_dxex_dd {}
+
+ const signed long long __builtin_dxexq (_Decimal128);
+ DXEXQ dfp_dxex_td {}
+
+ const _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
+ PACK_TD packtd {}
+
+ void __builtin_set_fpscr_drn (signed int);
+ SET_FPSCR_DRN rs6000_set_fpscr_drn {}
+
+ const unsigned long long __builtin_unpack_dec128 (_Decimal128, const int<1>);
+ UNPACK_TD unpacktd {}
+
+
+[MASK_CRYPTO]
+ const vull __builtin_crypto_vcipher (vull, vull);
+ VCIPHER crypto_vcipher_v2di {}
+
+ const vuc __builtin_crypto_vcipher_be (vuc, vuc);
+ VCIPHER_BE crypto_vcipher_v16qi {}
+
+ const vull __builtin_crypto_vcipherlast (vull, vull);
+ VCIPHERLAST crypto_vcipherlast_v2di {}
+
+ const vuc __builtin_crypto_vcipherlast_be (vuc, vuc);
+ VCIPHERLAST_BE crypto_vcipherlast_v16qi {}
+
+ const vull __builtin_crypto_vncipher (vull, vull);
+ VNCIPHER crypto_vncipher_v2di {}
+
+ const vuc __builtin_crypto_vncipher_be (vuc, vuc);
+ VNCIPHER_BE crypto_vncipher_v16qi {}
+
+ const vull __builtin_crypto_vncipherlast (vull, vull);
+ VNCIPHERLAST crypto_vncipherlast_v2di {}
+
+ const vuc __builtin_crypto_vncipherlast_be (vuc, vuc);
+ VNCIPHERLAST_BE crypto_vncipherlast_v16qi {}
+
+ const vull __builtin_crypto_vsbox (vull);
+ VSBOX crypto_vsbox_v2di {}
+
+ const vuc __builtin_crypto_vsbox_be (vuc);
+ VSBOX_BE crypto_vsbox_v16qi {}
+
+ const vull __builtin_crypto_vshasigmad (vull, const int<1>, const int<4>);
+ VSHASIGMAD crypto_vshasigmad {}
+
+ const vui __builtin_crypto_vshasigmaw (vui, const int<1>, const int<4>);
+ VSHASIGMAW crypto_vshasigmaw {}
+
+
+[MASK_HTM]
+ unsigned long long __builtin_get_texasr ();
+ GET_TEXASR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_texasru ();
+ GET_TEXASRU nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfhar ();
+ GET_TFHAR nothing {htm,htmspr}
+
+ unsigned long long __builtin_get_tfiar ();
+ GET_TFIAR nothing {htm,htmspr}
+
+ void __builtin_set_texasr (unsigned long long);
+ SET_TEXASR nothing {htm,htmspr}
+
+ void __builtin_set_texasru (unsigned long long);
+ SET_TEXASRU nothing {htm,htmspr}
+
+ void __builtin_set_tfhar (unsigned long long);
+ SET_TFHAR nothing {htm,htmspr}
+
+ void __builtin_set_tfiar (unsigned long long);
+ SET_TFIAR nothing {htm,htmspr}
+
+ unsigned int __builtin_tabort (unsigned int);
+ TABORT tabort {htm,htmcr}
+
+ unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int);
+ TABORTDC tabortdc {htm,htmcr}
+
+ unsigned int __builtin_tabortdci (unsigned int, unsigned int, signed int);
+ TABORTDCI tabortdci {htm,htmcr}
+
+ unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int);
+ TABORTWC tabortwc {htm,htmcr}
+
+ unsigned int __builtin_tabortwci (unsigned int, unsigned int, signed int);
+ TABORTWCI tabortwci {htm,htmcr}
+
+ unsigned int __builtin_tbegin (unsigned int);
+ TBEGIN tbegin {htm,htmcr}
+
+ unsigned int __builtin_tcheck ();
+ TCHECK tcheck {htm,htmcr}
+
+ unsigned int __builtin_tend (unsigned int);
+ TEND tend {htm,htmcr}
+
+ unsigned int __builtin_tendall ();
+ TENDALL tend {htm,htmcr}
+
+ unsigned int __builtin_trechkpt ();
+ TRECHKPT trechkpt {htm,htmcr}
+
+ unsigned int __builtin_treclaim (unsigned int);
+ TRECLAIM treclaim {htm,htmcr}
+
+ unsigned int __builtin_tresume ();
+ TRESUME tsr {htm,htmcr}
+
+ unsigned int __builtin_tsr (unsigned int);
+ TSR tsr {htm,htmcr}
+
+ unsigned int __builtin_tsuspend ();
+ TSUSPEND tsr {htm,htmcr}
+
+ unsigned int __builtin_ttest (unsigned int, unsigned int, signed int);
+ TTEST ttest {htm,htmcr}
+
+
+; #### We don't yet have the Darwin CfString builtin supported, but
+; that has its own special handling so it should go in there, I guess.
+;
+; BU_SPECIAL_X (RS6000_BUILTIN_CFSTRING, "__builtin_cfstring", RS6000_BTM_ALWAYS,
+; RS6000_BTC_MISC)
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-10-29 19:51 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14 13:59 [gcc(refs/users/wschmidt/heads/builtins3)] rs6000: Add remaining builtins William Schmidt
-- strict thread matches above, loose matches on Subject: below --
2020-10-29 19:51 William Schmidt
2020-10-27 16:29 William Schmidt
2020-09-16 21:30 William Schmidt
2020-08-28 20:08 William Schmidt
2020-08-20 16:39 William Schmidt
2020-08-18 18:45 William Schmidt
2020-07-27 18:48 William Schmidt
2020-07-17 17:23 William Schmidt
2020-06-17 20:06 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).