From patchwork Tue Jan 15 16:31:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [testsuite] fix ARM test gcc.target/arm/neon-vld1_dupQ.c Date: Tue, 15 Jan 2013 06:31:42 -0000 From: Janis Johnson X-Patchwork-Id: 212224 Message-Id: <50F5846E.6060102@mentor.com> To: Cc: "gcc-patches@gcc.gnu.org" , On 01/14/2013 03:04 PM, Janis Johnson wrote: > Test gcc.target/arm/neon-vld1_dupQ.c started failing with r194594, a C > front end change that causes the test to get warnings. The test passes > local variables of type int64x1_t to functions declared with arguments > of type int64_t. This patch casts the values passed to those arguments. > It's possible that the patch invalidates the intent of the test, so I've > copied the test's author. > > OK for trunk? > > Janis > Here's the patch (thanks, Aldy!). 2013-01-14 Janis Johnson * gcc.target/arm/neon-vld1_dupQ.c: Use types that match function prototypes. Index: gcc.target/arm/neon-vld1_dupQ.c =================================================================== --- gcc.target/arm/neon-vld1_dupQ.c (revision 195178) +++ gcc.target/arm/neon-vld1_dupQ.c (working copy) @@ -13,9 +13,9 @@ int64x1_t input[2] = {(int64x1_t)0x0123456776543210LL, (int64x1_t)0x89abcdeffedcba90LL}; int64x1_t output[2] = {0, 0}; - int64x2_t var = vld1q_dup_s64(input); + int64x2_t var = vld1q_dup_s64((int64_t *)input); - vst1q_s64(output, var); + vst1q_s64((int64_t *)output, var); if (output[0] != (int64x1_t)0x0123456776543210LL) abort(); if (output[1] != (int64x1_t)0x0123456776543210LL)