diff options
author | Andrew Pinski <apinski@cavium.com> | 2016-10-17 16:52:44 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2016-10-17 09:52:44 -0700 |
commit | dca2910c0d96c420c0e58c6c1253f7332d80b23e (patch) | |
tree | 7e4f359ae07ecdff9e01cad7714e5a7dd5792fe5 | |
parent | 5d4d78403cbd2fe450425ce8e9e42c8b14b8fca9 (diff) | |
download | gcc-dca2910c0d96c420c0e58c6c1253f7332d80b23e.zip gcc-dca2910c0d96c420c0e58c6c1253f7332d80b23e.tar.gz gcc-dca2910c0d96c420c0e58c6c1253f7332d80b23e.tar.bz2 |
test_align-7.c: Use long long instead of long.
2016-10-17 Andrew Pinski <apinski@cavium.com>
* gcc.target/aarch64/aapcs64/test_align-7.c: Use long
long instead of long.
* gcc.target/aarch64/cinc_common_1.c: Likewise.
* gcc.target/aarch64/combine_bfi_1.c: Likewise.
* gcc.target/aarch64/fmul_fcvt_1.c: Likewise.
* gcc.target/aarch64/mult-synth_4.c: Likewise.
* gcc.target/aarch64/pr68102_1.c: Likewise.
* gcc.target/aarch64/target_attr_3.c: Likewise.
From-SVN: r241259
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/aapcs64/test_align-7.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/cinc_common_1.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/combine_bfi_1.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/fmul_fcvt_1.c | 12 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/mult-synth_4.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/pr68102_1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/target_attr_3.c | 16 |
8 files changed, 36 insertions, 25 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e73fcf5..c65cfe0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2016-10-17 Andrew Pinski <apinski@cavium.com> + + * gcc.target/aarch64/aapcs64/test_align-7.c: Use long + long instead of long. + * gcc.target/aarch64/cinc_common_1.c: Likewise. + * gcc.target/aarch64/combine_bfi_1.c: Likewise. + * gcc.target/aarch64/fmul_fcvt_1.c: Likewise. + * gcc.target/aarch64/mult-synth_4.c: Likewise. + * gcc.target/aarch64/pr68102_1.c: Likewise. + * gcc.target/aarch64/target_attr_3.c: Likewise. + 2016-10-17 Richard Biener <rguenther@suse.de> PR tree-optimization/77988 diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/test_align-7.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/test_align-7.c index 6af422f..dac8e00 100644 --- a/gcc/testsuite/gcc.target/aarch64/aapcs64/test_align-7.c +++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/test_align-7.c @@ -7,8 +7,8 @@ struct s { - long x; - long y; + long long x; + long long y; }; /* This still has size 16, so is still passed by value. */ diff --git a/gcc/testsuite/gcc.target/aarch64/cinc_common_1.c b/gcc/testsuite/gcc.target/aarch64/cinc_common_1.c index d041263..f93364f 100644 --- a/gcc/testsuite/gcc.target/aarch64/cinc_common_1.c +++ b/gcc/testsuite/gcc.target/aarch64/cinc_common_1.c @@ -15,14 +15,14 @@ barsi (int x) return x > 100 ? x + 4 : x + 3; } -long -foodi (long x) +long long +foodi (long long x) { return x > 100 ? x - 2 : x - 1; } -long -bardi (long x) +long long +bardi (long long x) { return x > 100 ? x + 4 : x + 3; } diff --git a/gcc/testsuite/gcc.target/aarch64/combine_bfi_1.c b/gcc/testsuite/gcc.target/aarch64/combine_bfi_1.c index accf144..9cc3bdb 100644 --- a/gcc/testsuite/gcc.target/aarch64/combine_bfi_1.c +++ b/gcc/testsuite/gcc.target/aarch64/combine_bfi_1.c @@ -25,8 +25,8 @@ f4 (int x, int y) return (x & ~0xff) | (y & 0xff); } -long -f5 (long x, long y) +long long +f5 (long long x, long long y) { return (x & ~0xffffffffull) | (y & 0xffffffff); } diff --git a/gcc/testsuite/gcc.target/aarch64/fmul_fcvt_1.c b/gcc/testsuite/gcc.target/aarch64/fmul_fcvt_1.c index 05e06e3..f78f6ee 100644 --- a/gcc/testsuite/gcc.target/aarch64/fmul_fcvt_1.c +++ b/gcc/testsuite/gcc.target/aarch64/fmul_fcvt_1.c @@ -27,13 +27,13 @@ ulsffoo##__a (float x) \ } #define FUNC_DEFD(__a) \ -long \ +long long \ dffoo##__a (double x) \ { \ return x * __a##.0; \ } \ \ -unsigned long \ +unsigned long long \ udffoo##__a (double x) \ { \ return x * __a##.0; \ @@ -101,18 +101,18 @@ do \ __builtin_abort (); \ if (usffoo##__a (__b) != (unsigned int)(__b * __a)) \ __builtin_abort (); \ - if (lsffoo##__a (__b) != (long)(__b * __a)) \ + if (lsffoo##__a (__b) != (long long)(__b * __a)) \ __builtin_abort (); \ - if (ulsffoo##__a (__b) != (unsigned long)(__b * __a)) \ + if (ulsffoo##__a (__b) != (unsigned long long)(__b * __a)) \ __builtin_abort (); \ } while (0) #define FUNC_TESTD(__a, __b) \ do \ { \ - if (dffoo##__a (__b) != (long)(__b * __a)) \ + if (dffoo##__a (__b) != (long long)(__b * __a)) \ __builtin_abort (); \ - if (udffoo##__a (__b) != (unsigned long)(__b * __a)) \ + if (udffoo##__a (__b) != (unsigned long long)(__b * __a)) \ __builtin_abort (); \ if (sdffoo##__a (__b) != (int)(__b * __a)) \ __builtin_abort (); \ diff --git a/gcc/testsuite/gcc.target/aarch64/mult-synth_4.c b/gcc/testsuite/gcc.target/aarch64/mult-synth_4.c index 4b60778..a37786f 100644 --- a/gcc/testsuite/gcc.target/aarch64/mult-synth_4.c +++ b/gcc/testsuite/gcc.target/aarch64/mult-synth_4.c @@ -1,10 +1,10 @@ /* { dg-do compile } */ /* { dg-options "-O2 -mcpu=cortex-a57 -save-temps" } */ -long +long long foo (int x, int y) { - return (long)x * 6L; + return (long long)x * 6LL; } /* { dg-final { scan-assembler-times "smull\tx\[0-9\]+, w\[0-9\]+, w\[0-9\]+" 1 } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/pr68102_1.c b/gcc/testsuite/gcc.target/aarch64/pr68102_1.c index 3193b27..5bd81d8 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr68102_1.c +++ b/gcc/testsuite/gcc.target/aarch64/pr68102_1.c @@ -3,7 +3,7 @@ typedef __Float64x1_t float64x1_t; -typedef long int64_t; +typedef long long int64_t; extern int64_t bar (float64x1_t f); diff --git a/gcc/testsuite/gcc.target/aarch64/target_attr_3.c b/gcc/testsuite/gcc.target/aarch64/target_attr_3.c index 50e5252..9f9c276 100644 --- a/gcc/testsuite/gcc.target/aarch64/target_attr_3.c +++ b/gcc/testsuite/gcc.target/aarch64/target_attr_3.c @@ -5,12 +5,12 @@ and the fix is applied once. */ __attribute__ ((target ("fix-cortex-a53-835769"))) -unsigned long -test (unsigned long a, double b, unsigned long c, - unsigned long d, unsigned long *e) +unsigned long long +test (unsigned long long a, double b, unsigned long long c, + unsigned long long d, unsigned long long *e) { double result; - volatile unsigned long tmp = *e; + volatile unsigned long long tmp = *e; __asm__ __volatile ("// %0, %1" : "=w" (result) : "0" (b) @@ -18,12 +18,12 @@ test (unsigned long a, double b, unsigned long c, return c * d + d; } -unsigned long -test2 (unsigned long a, double b, unsigned long c, - unsigned long d, unsigned long *e) +unsigned long long +test2 (unsigned long long a, double b, unsigned long long c, + unsigned long long d, unsigned long long *e) { double result; - volatile unsigned long tmp = *e; + volatile unsigned long long tmp = *e; __asm__ __volatile ("// %0, %1" : "=w" (result) : "0" (b) |