[Aarch64] Adjust tests to take LSE extension into account.

2015-08-14 Thread Matthew Wahab
sequences. Tested for aarch64-none-elf with cross-compiled check-gcc. Also tested aarch64-none-elf with check-gcc using a custom build of the compiler with LSE extensions (atomic CAS) enabled by default. Ok for trunk? Matthew gcc/testsuite 2015-08-14 Matthew Wahab * gcc.target

Re: [Aarch64] Adjust tests to take LSE extension into account.

2015-08-14 Thread Matthew Wahab
On 14/08/15 14:36, Matthew Wahab wrote: Tests for the code generated by the Aarch64 backends for the __sync and __atomic builtins assume that they are implemented using sequences based on load-exclusive and store-exclusive instructions. ARMv8.1 introduces atomic instructions which can be used to

Re: [Aarch64] Adjust tests to take LSE extension into account.

2015-08-18 Thread Matthew Wahab
On 14/08/15 16:18, Matthew Wahab wrote: On 14/08/15 14:36, Matthew Wahab wrote: Tests for the code generated by the Aarch64 backends for the __sync and __atomic builtins assume that they are implemented using sequences based on load-exclusive and store-exclusive instructions. ARMv8.1 introduces

[Aarch64][target/PR 67143][5.2] Backport correct constraints for atomic operations.

2015-09-09 Thread Matthew Wahab
branch? Matthew gcc/ 2015-09-09 Matthew Wahab Backport from mainline 2015-08-14 Matthew Wahab PR target/67143 * config/aarch64/atomics.md (atomic_): Replace 'lconst_atomic' with 'const_atomic'. (atomic_fetch_): Likewise.

Re: [PATCH 4/7][ARM] Add ACLE feature macro for ARMv8.1 instructions.

2015-12-15 Thread Matthew Wahab
On 10/12/15 10:45, Ramana Radhakrishnan wrote: On Tue, Dec 8, 2015 at 7:45 AM, Christian Bruel wrote: Hi Matthew, On 26/11/15 16:01, Matthew Wahab wrote: Hello, This patch adds the feature macro __ARM_FEATURE_QRDMX to indicate the presence of the ARMv8.1 instructions vqrdmlah and vqrdmlsh

Re: [PATCH 5/7][Testsuite] Support ARMv8.1 ARM tests.

2015-12-15 Thread Matthew Wahab
On 10/12/15 10:49, Ramana Radhakrishnan wrote: On Mon, Dec 7, 2015 at 4:10 PM, Matthew Wahab wrote: On 27/11/15 17:11, Matthew Wahab wrote: On 27/11/15 13:44, Christophe Lyon wrote: On 26/11/15 16:02, Matthew Wahab wrote This patch adds ARMv8.1 support to GCC Dejagnu, to allow ARM tests

Re: [PATCH 1/7][ARM] Add support for ARMv8.1.

2015-12-16 Thread Matthew Wahab
On 10/12/15 11:02, Ramana Radhakrishnan wrote: On Thu, Dec 10, 2015 at 10:43 AM, Ramana Radhakrishnan wrote: On Mon, Dec 7, 2015 at 4:04 PM, Matthew Wahab wrote: Ping. Updated patch attached. Matthew On 26/11/15 15:55, Matthew Wahab wrote: Hello, ARMv8.1 includes an extension to ARM

[PR tree-optimization/64946] Push integer type conversion to ABS_EXPR argument when possible.

2016-01-08 Thread Matthew Wahab
2016-01-07 Matthew Wahab PR tree-optimization/64946 * convert.c (convert_to_integer_1): Push narrowing type conversions for ABS_EXPR into the argument when possible. diff --git a/gcc/convert.c b/gcc/convert.c index 4b1e1f1..95ff1e2 100644 --- a/gcc/convert.c +++ b/gcc/convert.c

Re: [PR tree-optimization/64946] Push integer type conversion to ABS_EXPR argument when possible.

2016-01-11 Thread Matthew Wahab
On 08/01/16 22:24, Joseph Myers wrote: On Fri, 8 Jan 2016, Matthew Wahab wrote: Hello, The C/C++ front-ends apply type conversions to expressions using ABS with integral arguments of type smaller than int. This means that, for short x, ABS(x) becomes something like (short)ABS((int)x)). When

Re: [PR tree-optimization/64946] Push integer type conversion to ABS_EXPR argument when possible.

2016-01-12 Thread Matthew Wahab
On 11/01/16 17:46, Richard Biener wrote: On January 11, 2016 5:36:33 PM GMT+01:00, Bernd Schmidt wrote: On 01/11/2016 05:33 PM, Matthew Wahab wrote: The case I'm trying to fix has (short)abs((int)short_var). I'd thought that if abs(short_var) was undefined because the result c

[PATCH][Aarch64] PR64149: Remove -mlra/-mno-lra option for Aarch64.

2015-01-12 Thread Matthew Wahab
Hello, The LRA register is enabled by default for the Aarch64 backend and -mno-lra should no longer be used. This patch removes the -mlra/-mno-lra option for AArch64. Tested aarch64-none-linux-gnu with gcc-check. Matthew 2015-01-08 Matthew Wahab PR target/64149 * config

[PATCH][ARM] PR 64149: Remove -mlra/-mno-lra option for ARM.

2015-01-13 Thread Matthew Wahab
Hello, The LRA register alloator is enabled by default for the ARM backend and -mno-lra should no longer be used. This patch removes the -mlra/-mno-lra option from the ARM backend. arm-none-linux-gnueabihf passes gcc-check with no new failures. Matthew 2015-01-13 Matthew Wahab

[PATCH][testsuite] Fix oversized bitfield warning.

2015-01-14 Thread Matthew Wahab
none-linux-gnueabihf. Matthew 2015-01-13 Matthew Wahab * testsuite/g++.dg/torture/20141013.C: Set -fno-short-enums.diff --git a/gcc/testsuite/g++.dg/torture/20141013.C b/gcc/testsuite/g++.dg/torture/20141013.C index 529ef0965e4472e5038a9e6d09f13ca4f4a05954..82aacd6317eb3cd66b2839347a708a

<    1   2   3