From 89fc051f16b0a20da214e74252732973845d3b7a Mon Sep 17 00:00:00 2001 From: David Sherwood Date: Mon, 15 Sep 2014 09:57:46 +0000 Subject: [PATCH] [AArch64] Fix force_simd macro in vdup_lane_2 gcc/ * gcc.target/aarch64/vdup_lane_2.c (force_simd): Emit simd mov. From-SVN: r215260 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/aarch64/vdup_lane_2.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1e9aefb54ee..5f3c8db9bb0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-09-14 David Sherwood + + * gcc.target/aarch64/vdup_lane_2.c (force_simd): Emit simd mov. + 2014-09-14 James Clarke PR target/61407 diff --git a/gcc/testsuite/gcc.target/aarch64/vdup_lane_2.c b/gcc/testsuite/gcc.target/aarch64/vdup_lane_2.c index c4183ce1a32..43ff5cc3717 100644 --- a/gcc/testsuite/gcc.target/aarch64/vdup_lane_2.c +++ b/gcc/testsuite/gcc.target/aarch64/vdup_lane_2.c @@ -4,10 +4,10 @@ #include -#define force_simd(V1) asm volatile ("" \ - : "=w"(V1) \ - : "w"(V1) \ - : /* No clobbers */) +#define force_simd(V1) asm volatile ("mov %d0, %1.d[0]" \ + : "=w"(V1) \ + : "w"(V1) \ + : /* No clobbers */) extern void abort (void);