[PATCH, GCC/ARM, Stage 1] Rename FPSCR builtins to correct names

2017-03-22 Thread Prakhar Bahuguna
are not recognised. This patch corrects the intrinsic names to match the documentation, and adds tests to verify these intrinsics generate the correct instructions. Testing done: Ran regression tests on arm-none-eabi for Cortex-M4. 2017-03-09 Prakhar Bahuguna <prakhar.bahug...@arm.com> gcc/Cha

Re: [PATCH, GCC/ARM, Stage 1] Rename FPSCR builtins to correct names

2017-04-10 Thread Prakhar Bahuguna
On 22/03/2017 10:46:30, Prakhar Bahuguna wrote: > The GCC documentation in section 6.60.8 ARM Floating Point Status and Control > Intrinsics states that the FPSCR register can be read and written to using the > intrinsics __builtin_arm_get_fpscr and __builtin_arm_set_fpscr

[PATCH, GCC/ARM, Stage 1] PR71607: Fix ICE when loading constant

2017-04-20 Thread Prakhar Bahuguna
[ARM] PR71607: Fix ICE when loading constant gcc/ChangeLog: 2017-04-18 Andre Vieira <andre.simoesdiasvie...@arm.com> Prakhar Bahuguna <prakhar.bahug...@arm.com> PR target/71607 * config/arm/arm.md (use_literal_pool): Removes. (64-bit imm

[PATCH, GCC/ARM] Only test tls-disable-literal-pool.c if target supports native TLS

2017-05-11 Thread Prakhar Bahuguna
tls-disable-literal-pool.c should only be run if the toolchain and target support native thread-local storage rather than emulated TLS. This patch also improves the matching of the error message. testsuite/ChangeLog: 2017-05-11 Prakhar Bahuguna <prakhar.bahug...@arm.com> * gcc.

[PATCH, GCC/ARM, Stage 1] Add missing TARGET_32BIT conditional to movsi

2017-05-11 Thread Prakhar Bahuguna
Resolve the regressions introduced on non-Thumb targets by the Purecode for ARMv8-M Baseline patch. The TARGET_32BIT conditional has been re-added to the movsi expander and splitter in addition to TARGET_HAVE_MOVT. gcc/ChangeLog: 2017-05-11 Prakhar Bahuguna <prakhar.bahug...@arm.

Re: [PATCH, GCC/ARM, Stage 1] Add missing TARGET_32BIT conditional to movsi

2017-05-12 Thread Prakhar Bahuguna
On 11/05/2017 10:58:52, Kyrill Tkachov wrote: > > On 11/05/17 10:56, Prakhar Bahuguna wrote: > > Resolve the regressions introduced on non-Thumb targets by the Purecode for > > ARMv8-M Baseline patch. The TARGET_32BIT conditional has been re-added to > > the > &g

[PING][PATCH, GCC/ARM] Only test tls-disable-literal-pool.c if target supports native TLS

2017-05-19 Thread Prakhar Bahuguna
On 11/05/2017 14:54:37, Prakhar Bahuguna wrote: > tls-disable-literal-pool.c should only be run if the toolchain and target > support native thread-local storage rather than emulated TLS. This patch also > improves the matching of the error message. > > testsuite/ChangeLog:

[PATCH, GCC/ARM/gcc-7-branch] Backport PR71607

2017-05-25 Thread Prakhar Bahuguna
s a result. The patch now emits a diagnostic in TLS-enabled toolchains if a TLS symbol is found when -mpure-code or -mslow-flash-data are enabled. 2017-05-25 Prakhar Bahuguna <prakhar.bahug...@arm.com> Backport from mainline 2017-05-05 Andre Vieira <andre.simoe

Re: [PING][PATCH, GCC/ARM] Only test tls-disable-literal-pool.c if target supports native TLS

2017-05-30 Thread Prakhar Bahuguna
On 29/05/2017 14:23:05, Christophe Lyon wrote: > On 19 May 2017 at 14:29, Prakhar Bahuguna <prakhar.bahug...@arm.com> wrote: > > On 11/05/2017 14:54:37, Prakhar Bahuguna wrote: > >> tls-disable-literal-pool.c should only be run if the toolchain and target > >> su

Re: [PING][PATCH, GCC/ARM] Only test tls-disable-literal-pool.c if target supports native TLS

2017-05-30 Thread Prakhar Bahuguna
On 30/05/2017 14:11:22, Christophe Lyon wrote: > On 30 May 2017 at 09:44, Prakhar Bahuguna <prakhar.bahug...@arm.com> wrote: > > On 29/05/2017 14:23:05, Christophe Lyon wrote: > >> On 19 May 2017 at 14:29, Prakhar Bahuguna <prakhar.bahug...@arm.com> wrote: > >

[PATCH, Committed] Add self to MAINTAINERS

2017-05-31 Thread Prakhar Bahuguna
I have added myself to the Write After Approval section of the MAINTAINERS list. ChangeLog: 2017-05-31 Prakhar Bahuguna <prakhar.bahug...@arm.com> * MAINTAINERS: Add self to Write After Approval -- Prakhar Bahuguna

[arm-embedded] Enable Purecode for ARMv8-M Baseline

2017-05-31 Thread Prakhar Bahuguna
We have decided to apply the following patch to ARM/embedded-7-branch and ARM/embedded-6-branch to enable Purecode support for ARMv8-M Baseline targets. ChangeLog: 2017-05-31 Prakhar Bahuguna <prakhar.bahug...@arm.com> Backport from mainline 2017-05-04 Prakhar Ba

Re: [PATCH, GCC/ARM/gcc-7-branch] Backport PR71607

2017-05-31 Thread Prakhar Bahuguna
doubles and floats but haven't succeeded. Thanks, -- Prakhar Bahuguna

Re: [PATCH, GCC/ARM/gcc-7-branch] Backport PR71607

2017-05-31 Thread Prakhar Bahuguna
On 31/05/2017 14:11:43, Richard Sandiford wrote: > Prakhar Bahuguna <prakhar.bahug...@arm.com> writes: > > On 31/05/2017 09:19:40, Richard Sandiford wrote: > >> const_ints are supposed to be stored in sign-extended form, so a 32-bit > >> integer with the MSB s

[PATCH, GCC/ARM/gcc-6-branch] Backport PR71607

2017-06-02 Thread Prakhar Bahuguna
s a result. The patch now emits a diagnostic in TLS-enabled toolchains if a TLS symbol is found when -mpure-code or -mslow-flash-data are enabled. 2017-06-02 Prakhar Bahuguna <prakhar.bahug...@arm.com> Backport from mainline 2017-05-05 Andre Vieira <andre.simoe

Re: [PATCH, GCC/ARM/gcc-7-branch] Backport PR71607

2017-06-01 Thread Prakhar Bahuguna
On 01/06/2017 07:15:47, Richard Sandiford wrote: > Prakhar Bahuguna <prakhar.bahug...@arm.com> writes: > > On 31/05/2017 14:11:43, Richard Sandiford wrote: > >> Prakhar Bahuguna <prakhar.bahug...@arm.com> writes: > >> > On 31/05/2017 09:19:40, R

[PATCH, GCC/THUMB1] New define_insn_and_split pattern to optimize out unnecessary uxtb instructions

2017-06-05 Thread Prakhar Bahuguna
stage, this veneer insn pattern will be turned into normal thumb1_addsi3_addgeu pattern for future code generation. gcc/ChangeLog: 2017-06-05 Prakhar Bahuguna <prakhar.bahug...@arm.com> * config/arm/arm.md (cstoresi_leu_thumb1): New define_insn_and_split pattern. (cst

Re: [PATCH, ARM] Implement __ARM_FEATURE_COPROC coprocessor intrinsic feature macro

2017-06-16 Thread Prakhar Bahuguna
On 15/06/2017 17:23:43, Richard Earnshaw (lists) wrote: > On 14/06/17 10:35, Prakhar Bahuguna wrote: > > The ARM ACLE defines the __ARM_FEATURE_COPROC macro which indicates which > > coprocessor intrinsics are available for the target. If > > __ARM_FEATURE_COPROC is > >

Re: [PATCH, ARM] Implement __ARM_FEATURE_COPROC coprocessor intrinsic feature macro

2017-06-16 Thread Prakhar Bahuguna
Patch updated with code style fixes. -- Prakhar Bahuguna >From f1d76a6309a1fe16711b800507938eaa4f78852e Mon Sep 17 00:00:00 2001 From: Prakhar Bahuguna <prakhar.bahug...@arm.com> Date: Tue, 2 May 2017 13:43:40 +0100 Subject: [PATCH] Implement __ARM_FEATURE_COPROC coprocessor intrinsi

Re: [PATCH, ARM] Implement __ARM_FEATURE_COPROC coprocessor intrinsic feature macro

2017-06-16 Thread Prakhar Bahuguna
On 16/06/2017 15:37:18, Richard Earnshaw (lists) wrote: > On 16/06/17 08:48, Prakhar Bahuguna wrote: > > On 15/06/2017 17:23:43, Richard Earnshaw (lists) wrote: > >> On 14/06/17 10:35, Prakhar Bahuguna wrote: > >>> The ARM ACLE defines the __ARM_FEATURE_COPR

[PATCH, ARM] Implement __ARM_FEATURE_COPROC coprocessor intrinsic feature macro

2017-06-14 Thread Prakhar Bahuguna
Prakhar Bahuguna <prakhar.bahug...@arm.com> * config/arm/arm-c.c (arm_cpu_builtins): New block to define __ARM_FEATURE_COPROC according to support. 2017-06-14 Prakhar Bahuguna <prakhar.bahug...@arm.com> * gcc/testsuite/gcc.target/arm/acle/cdp.c: Add feature

Re: [PATCH, GCC/ARM, Stage 1] Enable Purecode for ARMv8-M Baseline

2017-05-04 Thread Prakhar Bahuguna
On 02/05/2017 16:20:50, Ramana Radhakrishnan wrote: > On Tue, May 02, 2017 at 11:45:48AM +0100, Prakhar Bahuguna wrote: > > This patch adds support for purecode to ARMv8-M Baseline, in addition to the > > existing support for ARMv7-M and ARMv8-M Mainline. > > > > gcc/

[PATCH, GCC/ARM, Stage 1] Enable Purecode for ARMv8-M Baseline

2017-05-02 Thread Prakhar Bahuguna
This patch adds support for purecode to ARMv8-M Baseline, in addition to the existing support for ARMv7-M and ARMv8-M Mainline. gcc/ChangeLog: 2017-01-11 Prakhar Bahuguna <prakhar.bahug...@arm.com> Andre Simoes Dias Vieira <andre.simoesdiasvie...@arm.com>

Re: [PATCH, GCC/ARM, Stage 1] PR71607: Fix ICE when loading constant

2017-05-04 Thread Prakhar Bahuguna
On 03/05/2017 11:30:13, Richard Earnshaw (lists) wrote: > On 20/04/17 10:54, Prakhar Bahuguna wrote: > > [ARM] PR71607: Fix ICE when loading constant > > > > gcc/ChangeLog: > > > > 2017-04-18 Andre Vieira <andre.simoesdiasvie...@arm.com> > >