public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] amdgcn: Fix expansion of builtin for vector fabs operation
@ 2022-11-02 0:37 Kwok Yeung
0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2022-11-02 0:37 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a3c04a367a90597e729874ccadb9ce004d76f515
commit a3c04a367a90597e729874ccadb9ce004d76f515
Author: Kwok Cheung Yeung <kcy@codesourcery.com>
Date: Tue Nov 1 23:05:44 2022 +0000
amdgcn: Fix expansion of builtin for vector fabs operation
2022-11-01 Kwok Cheung Yeung <kcy@codesourcery.com>
* config/gcn/gcn.cc (gcn_expand_builtin_1): Fix expansion of
GCN_BUILTIN_FABSV.
Diff:
---
gcc/ChangeLog.omp | 5 +++++
gcc/config/gcn/gcn.cc | 4 +---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index b636fa5baf4..467a2497fb2 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -1,3 +1,8 @@
+2022-11-01 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * config/gcn/gcn.cc (gcn_expand_builtin_1): Fix expansion of
+ GCN_BUILTIN_FABSV.
+
2022-11-01 Marcel Vollweiler <marcel@codesourcery.com>
* omp-expand-metadirective.cc (omp_expand_metadirective): Add already
diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc
index d24e7aec9ef..08dd3d618c6 100644
--- a/gcc/config/gcn/gcn.cc
+++ b/gcc/config/gcn/gcn.cc
@@ -4365,13 +4365,11 @@ gcn_expand_builtin_1 (tree exp, rtx target, rtx /*subtarget */ ,
{
if (ignore)
return target;
- rtx exec = get_exec (-1);
rtx arg = force_reg (V64DFmode,
expand_expr (CALL_EXPR_ARG (exp, 0), NULL_RTX,
V64DFmode,
EXPAND_NORMAL));
- emit_insn (gen_absv64df2_exec
- (target, arg, gcn_gen_undef (V64DFmode), exec));
+ emit_insn (gen_absv64df2 (target, arg));
return target;
}
case GCN_BUILTIN_LDEXPVF:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-02 0:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02 0:37 [gcc/devel/omp/gcc-12] amdgcn: Fix expansion of builtin for vector fabs operation Kwok Yeung
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).