amdgcn: Fix expansion of GCN_BUILTIN_LDEXPV builtin
authorKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 8 Nov 2022 14:38:23 +0000 (14:38 +0000)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 8 Nov 2022 14:52:12 +0000 (14:52 +0000)
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

index 9c5e341..5e6f3b8 100644 (file)
@@ -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,