From c5ce61b0a5c554a003b99b250796ee6d0f782c54 Mon Sep 17 00:00:00 2001 From: Alan Lawrence Date: Wed, 29 Jul 2015 14:27:21 +0000 Subject: [PATCH] [AArch64 Testsuite] vld1_lane.c: Remove unused test data (taken from [AArch64] Add support for float14x{4,8}_t vectors/builtins) * gcc.target/aarch64/vld1_lane.c (main): Remove unused test data. (CHECK): Pass address of scalar, rather than array. From-SVN: r226353 --- gcc/testsuite/ChangeLog | 5 ++++ gcc/testsuite/gcc.target/aarch64/vld1_lane.c | 29 ++++++++++---------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 798df4bc856..3d72f47a3a8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-29 Alan Lawrence + + * gcc.target/aarch64/vld1_lane.c (main): Remove unused test data. + (CHECK): Pass address of scalar, rather than array. + 2015-07-29 Alan Lawrence * gcc.target/aarch64/vld1-vst1_1.c: Add missing float32x4_t case. diff --git a/gcc/testsuite/gcc.target/aarch64/vld1_lane.c b/gcc/testsuite/gcc.target/aarch64/vld1_lane.c index c2445f8df53..463c88c0a5f 100644 --- a/gcc/testsuite/gcc.target/aarch64/vld1_lane.c +++ b/gcc/testsuite/gcc.target/aarch64/vld1_lane.c @@ -56,7 +56,7 @@ VARIANTS (TESTMETH) #define CHECK(BASE, Q, ELTS, SUFFIX, LANE) \ if (test_vld1##Q##_lane##SUFFIX ((const BASE##_t *)orig_data, \ - BASE##_data) != 0) \ + & BASE##_data) != 0) \ abort (); int @@ -65,20 +65,19 @@ main (int argc, char **argv) /* Original data for all vector formats. */ uint64_t orig_data[2] = {0x1234567890abcdefULL, 0x13579bdf02468aceULL}; - /* Data with which vldN_lane will overwrite some of previous. */ - uint8_t uint8_data[4] = { 7, 11, 13, 17 }; - uint16_t uint16_data[4] = { 257, 263, 269, 271 }; - uint32_t uint32_data[4] = { 65537, 65539, 65543, 65551 }; - uint64_t uint64_data[4] = { 0xdeadbeefcafebabeULL, 0x0123456789abcdefULL, - 0xfedcba9876543210LL, 0xdeadbabecafebeefLL }; - int8_t int8_data[4] = { -1, 3, -5, 7 }; - int16_t int16_data[4] = { 257, -259, 261, -263 }; - int32_t int32_data[4] = { 123456789, -987654321, -135792468, 975318642 }; - int64_t *int64_data = (int64_t *)uint64_data; - poly8_t poly8_data[4] = { 0, 7, 13, 18, }; - poly16_t poly16_data[4] = { 11111, 2222, 333, 44 }; - float32_t float32_data[4] = { 3.14159, 2.718, 1.414, 100.0 }; - float64_t float64_data[4] = { 1.010010001, 12345.6789, -9876.54321, 1.618 }; + /* Data with which vld1_lane will overwrite one element of previous. */ + uint8_t uint8_data = 7; + uint16_t uint16_data = 257; + uint32_t uint32_data = 65537; + uint64_t uint64_data = 0xdeadbeefcafebabeULL; + int8_t int8_data = -1; + int16_t int16_data = -259; + int32_t int32_data = -987654321; + int64_t int64_data = 0x1234567890abcdefLL; + poly8_t poly8_data = 13; + poly16_t poly16_data = 11111; + float32_t float32_data = 3.14159; + float64_t float64_data = 1.010010001; VARIANTS (CHECK); return 0; -- 2.30.2