mips.c (DIRECT_BUILTIN_PURE): New macro.
authorMihailo Stojanovic <mistojanovic@wavecomp.com>
Mon, 28 Oct 2019 19:10:42 +0000 (19:10 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 28 Oct 2019 19:10:42 +0000 (13:10 -0600)
commitea9d5cc80e39746e237dc5281e9492a080d238f4
tree2c03ff294fc17766c68e8faac8adab186393f912
parent18e2ca55d452f95bbd3739f86bad2490726ee378
mips.c (DIRECT_BUILTIN_PURE): New macro.

        * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
        pure qualifier to the built-in.
        (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
        built-ins.
        (struct mips_builtin_description): Add is_pure flag.
        (mips_init_builtins): Mark built-in as pure if the flag in the
        corresponding mips_builtin_description struct is set.

        * gcc.target/mips/mips-builtins-pure.c: New test.

From-SVN: r277534
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/mips-builtins-pure.c [new file with mode: 0644]