]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000, Add missing overloaded bcd builtin tests, documentation
authorCarl Love <cel@us.ibm.com>
Tue, 31 Oct 2023 16:29:20 +0000 (12:29 -0400)
committerCarl Love <cel@linux.ibm.com>
Tue, 31 Oct 2023 16:30:41 +0000 (12:30 -0400)
commitc82f123d93416bab17ee92bed5e5f4292bc7898f
tree5af3b71433a77dfea6384c61bda5ef26e9cfd28b
parentf694960924e6420086c8ae5809995f7d43a06b5f
rs6000, Add missing overloaded bcd builtin tests, documentation

Currently we have the documentation for __builtin_vec_bcdsub_{eq,gt,lt} but
not for __builtin_bcdsub_{gl}e, this patch is to supplement the descriptions
for them.  Although they are mainly for __builtin_bcdcmp{ge,le}, we already
have some testing coverage for __builtin_vec_bcdsub_{eq,gt,lt}, this patch
adds the corresponding explicit test cases as well.

gcc/ChangeLog:
* doc/extend.texi (__builtin_bcdsub_le, __builtin_bcdsub_ge): Add
documentation for the builti-ins.

gcc/testsuite/ChangeLog:
* gcc.target/powerpc/bcd-3.c (do_sub_ge, do_suble): Add functions
to test builtins __builtin_bcdsub_ge and __builtin_bcdsub_le.
gcc/doc/extend.texi
gcc/testsuite/gcc.target/powerpc/bcd-3.c