aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/dump-parse-tree.cc
diff options
context:
space:
mode:
authorCarl Love <cel@us.ibm.com>2023-07-13 13:44:43 -0400
committerCarl Love <cel@us.ibm.com>2023-07-13 13:44:43 -0400
commitef3bbc69d15707e4db6e2f198c621effb636cc26 (patch)
tree99895d9e279216a439f7f3a462aa5ec172b378c5 /gcc/fortran/dump-parse-tree.cc
parenta1d12752f8d45df5d7962cef6e2a87585002e982 (diff)
downloadgcc-ef3bbc69d15707e4db6e2f198c621effb636cc26.zip
gcc-ef3bbc69d15707e4db6e2f198c621effb636cc26.tar.gz
gcc-ef3bbc69d15707e4db6e2f198c621effb636cc26.tar.bz2
rs6000, Add return value to __builtin_set_fpscr_rn
Change the return value from void to double for __builtin_set_fpscr_rn. The return value consists of the FPSCR fields DRN, VE, OE, UE, ZE, XE, NI, RN bit positions. A new test file, test powerpc/test_fpscr_rn_builtin_2.c, is added to test the new return value for the built-in. The value __SET_FPSCR_RN_RETURNS_FPSCR__ is defined if __builtin_set_fpscr_rn returns a double. gcc/ChangeLog: * config/rs6000/rs6000-builtins.def (__builtin_set_fpscr_rn): Update built-in definition return type. * config/rs6000/rs6000-c.cc (rs6000_target_modify_macros): Add check, define __SET_FPSCR_RN_RETURNS_FPSCR__ macro. * config/rs6000/rs6000.md (rs6000_set_fpscr_rn): Add return argument to return FPSCR fields. * doc/extend.texi (__builtin_set_fpscr_rn): Update description for the return value. Add description for __SET_FPSCR_RN_RETURNS_FPSCR__ macro. gcc/testsuite/ChangeLog: * gcc.target/powerpc/test_fpscr_rn_builtin.c: Rename to test_fpscr_rn_builtin_1.c. Add comment. * gcc.target/powerpc/test_fpscr_rn_builtin_2.c: New test for the return value of __builtin_set_fpscr_rn builtin.
Diffstat (limited to 'gcc/fortran/dump-parse-tree.cc')
0 files changed, 0 insertions, 0 deletions