From: Bin Cheng Date: Fri, 12 Dec 2014 04:45:58 +0000 (+0000) Subject: ldp_stp_2.c: Make test less vulnerable. X-Git-Tag: releases/gcc-5.1.0~2421 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8c8ffa90081e97f664e73f58518a95f695aaca3;p=thirdparty%2Fgcc.git ldp_stp_2.c: Make test less vulnerable. gcc/testsuite * gcc.target/aarch64/ldp_stp_2.c: Make test less vulnerable. * gcc.target/aarch64/ldp_stp_3.c: Ditto. From-SVN: r218657 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c9c94ff3eb8c..1c06df09b106 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-12 Bin Cheng + + * gcc.target/aarch64/ldp_stp_2.c: Make test less vulnerable. + * gcc.target/aarch64/ldp_stp_3.c: Ditto. + 2014-12-11 Eric Botcazou * gcc.dg/builtin-arith-overflow-1.c (fn2): Take signed char. diff --git a/gcc/testsuite/gcc.target/aarch64/ldp_stp_2.c b/gcc/testsuite/gcc.target/aarch64/ldp_stp_2.c index e3b564133909..483f4afd2e84 100644 --- a/gcc/testsuite/gcc.target/aarch64/ldp_stp_2.c +++ b/gcc/testsuite/gcc.target/aarch64/ldp_stp_2.c @@ -7,10 +7,8 @@ long long foo () { long long ll = 0; - ll += arr[0][1]; ll += arr[1][0]; ll += arr[1][1]; - ll += arr[2][0]; return ll; } diff --git a/gcc/testsuite/gcc.target/aarch64/ldp_stp_3.c b/gcc/testsuite/gcc.target/aarch64/ldp_stp_3.c index c6c877bf87ac..e257654a5cca 100644 --- a/gcc/testsuite/gcc.target/aarch64/ldp_stp_3.c +++ b/gcc/testsuite/gcc.target/aarch64/ldp_stp_3.c @@ -7,10 +7,8 @@ unsigned long long foo () { unsigned long long ll = 0; - ll += arr[0][1]; ll += arr[1][0]; ll += arr[1][1]; - ll += arr[2][0]; return ll; }