[ARM] Rename FPSCR builtins to correct names
authorPrakhar Bahuguna <prakhar.bahuguna@arm.com>
Thu, 4 May 2017 10:16:04 +0000 (10:16 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Thu, 4 May 2017 10:16:04 +0000 (10:16 +0000)
commit556cf0887e1583d109597e6e4abff2bad058abcf
treeb61d68a04e0b1b45fbd9424585b909a249ddfda5
parentcd09e219ce388a62b3f51e49261821e0fbcd43fe
[ARM] Rename FPSCR builtins to correct names

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. However, these are misnamed within GCC itself
and these intrinsic names are not recognised.

This patch corrects the intrinsic names to match the documentation, and
adds tests to verify these intrinsics generate the correct
instructions.

2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>

    gcc/
    * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
    __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
    __builtin_arm_stfscr to __builtin_arm_set_fpscr.

    gcc/testsuite/
    * gcc.target/arm/fpscr.c: New file.

From-SVN: r247584
gcc/ChangeLog
gcc/config/arm/arm-builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/fpscr.c [new file with mode: 0644]