aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-05-06 12:20:17 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-05-06 12:24:43 -0700
commit53026cbf08889d00fed34d8667796d22ef8554cf (patch)
treeb7b65d9e12b74eca466ad77e665fc02b3c0dabc2 /gcc
parent6634a409124a884ff66b3756568a7daae7d3c295 (diff)
downloadgcc-53026cbf08889d00fed34d8667796d22ef8554cf.zip
gcc-53026cbf08889d00fed34d8667796d22ef8554cf.tar.gz
gcc-53026cbf08889d00fed34d8667796d22ef8554cf.tar.bz2
aarch64: Fix gcc.target/aarch64/sve/loop_add_6.c for LLP64 targets
Even though the aarch64-mingw32 support has not been committed yet, we should fix some of the testcases. In this case gcc.target/aarch64/sve/loop_add_6.c is easy to fix. We should use __SIZETYPE__ instead of `unsigned long` for the variables that will be used for pointer plus. Committed as obvious after a quick test on aarch64-linux-gnu. gcc/testsuite/ChangeLog: PR testsuite/114177 * gcc.target/aarch64/sve/loop_add_6.c: Use __SIZETYPE__ instead of `unsigned long` for index and offset variables. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/aarch64/sve/loop_add_6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/sve/loop_add_6.c b/gcc/testsuite/gcc.target/aarch64/sve/loop_add_6.c
index e7416eb..a530998 100644
--- a/gcc/testsuite/gcc.target/aarch64/sve/loop_add_6.c
+++ b/gcc/testsuite/gcc.target/aarch64/sve/loop_add_6.c
@@ -5,8 +5,8 @@ double __GIMPLE (ssa, startwith("loop"))
neg_xi (double *x)
{
int i;
- long unsigned int index;
- long unsigned int offset;
+ __SIZETYPE__ index;
+ __SIZETYPE__ offset;
double * xi_ptr;
double xi;
double neg_xi;
@@ -20,8 +20,8 @@ neg_xi (double *x)
res_1 = __PHI (__BB5: 0.0, __BB3: res_2);
i_4 = __PHI (__BB5: 0, __BB3: i_5);
ivtmp_6 = __PHI (__BB5: 100U, __BB3: ivtmp_7);
- index = (long unsigned int) i_4;
- offset = index * 8UL;
+ index = (__SIZETYPE__ ) i_4;
+ offset = index * _Literal (__SIZETYPE__) 8;
xi_ptr = x_8(D) + offset;
xi = *xi_ptr;
neg_xi = -xi;