]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: Fix expansion of GCN_BUILTIN_LDEXPV builtin
authorKwok Cheung Yeung <kcy@codesourcery.com>
Mon, 7 Nov 2022 13:11:33 +0000 (13:11 +0000)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Mon, 7 Nov 2022 13:16:31 +0000 (13:16 +0000)
2022-11-07  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/ChangeLog.omp
gcc/config/gcn/gcn.cc

index 7551b505bc064d211699432151f7e8b6093cbe92..2fd66c63cbba4cd7a8c77287b545a93be34c1bf3 100644 (file)
@@ -1,3 +1,8 @@
+2022-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+       * config/gcn/gcn.cc (gcn_expand_builtin_1): Expand first argument
+       of GCN_BUILTIN_LDEXPV to V64DFmode.
+
 2022-11-01  Kwok Cheung Yeung  <kcy@codesourcery.com>
            Paul-Antoine Arras  <pa@codesourcery.com>
 
index f0c78510880838db8014d8918b94d2112b80d1af..884703249aed6d94a20e8caaacdd5c185dd6ad63 100644 (file)
@@ -4416,7 +4416,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,