[COMMITTED] amdgcn: Fix expansion of GCN_BUILTIN_LDEXPV builtin
Checks
Commit Message
Hello
This patch fixes a bug in the expansion of GCN_BUILTIN_LDEXPV. As this
is a double-precision operation, the first argument should be expanded
as a V64DF expression (instead of V64SF).
Committed to trunk as obvious.
Kwok
From cb0a2b1f28cf0c231bf38fcd02c40689739df7bb Mon Sep 17 00:00:00 2001
From: Kwok Cheung Yeung <kcy@codesourcery.com>
Date: Tue, 8 Nov 2022 14:38:23 +0000
Subject: [PATCH] amdgcn: Fix expansion of GCN_BUILTIN_LDEXPV builtin
2022-11-08 Kwok Cheung Yeung <kcy@codesourcery.com>
gcc/
* config/gcn/gcn.cc (gcn_expand_builtin_1): Expand first argument
of GCN_BUILTIN_LDEXPV to V64DFmode.
---
gcc/config/gcn/gcn.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.25.1
@@ -4383,7 +4383,7 @@ gcn_expand_builtin_1 (tree exp, rtx target, rtx /*subtarget */ ,
return target;
rtx arg1 = force_reg (V64DFmode,
expand_expr (CALL_EXPR_ARG (exp, 0), NULL_RTX,
- V64SFmode,
+ V64DFmode,
EXPAND_NORMAL));
rtx arg2 = force_reg (V64SImode,
expand_expr (CALL_EXPR_ARG (exp, 1), NULL_RTX,