This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242951 - in /trunk/gcc/testsuite: ChangeLog gc...


Author: segher
Date: Tue Nov 29 05:51:51 2016
New Revision: 242951

URL: https://gcc.gnu.org/viewcvs?rev=242951&root=gcc&view=rev
Log:
rs6000: Testcases for rl*i*

These testcases test that we generate the expected code for all of the
rl*i* instructions, that is, rotate-and-mask and rotate-and-mask-insert
for immediate rotation counts.  All the testcases do rotate, shift left,
as well as shift right; if that results in an instruction that does not
exist the testcases generate a multiplication instead, so that we can
detect if this is handled properly.

Many 32-bit instructions zero-extend their result properly in 64-bit
mode, but the rs6000 port does not yet know.  These testcases test the
status quo, so they will need updating when ever we handle this.


gcc/testsuite/
	* gcc.target/powerpc/rldic-0.c: New testcase.
	* gcc.target/powerpc/rldic-1.c: New testcase.
	* gcc.target/powerpc/rldic-2.c: New testcase.
	* gcc.target/powerpc/rldicl-0.c: New testcase.
	* gcc.target/powerpc/rldicl-1.c: New testcase.
	* gcc.target/powerpc/rldicl-2.c: New testcase.
	* gcc.target/powerpc/rldicr-0.c: New testcase.
	* gcc.target/powerpc/rldicr-1.c: New testcase.
	* gcc.target/powerpc/rldicr-2.c: New testcase.
	* gcc.target/powerpc/rldicx.h: New file.
	* gcc.target/powerpc/rldimi-0.c: New testcase.
	* gcc.target/powerpc/rldimi-1.c: New testcase.
	* gcc.target/powerpc/rldimi-2.c: New testcase.
	* gcc.target/powerpc/rldimi.h: New file.
	* gcc.target/powerpc/rlwimi-0.c: New testcase.
	* gcc.target/powerpc/rlwimi-1.c: New testcase.
	* gcc.target/powerpc/rlwimi-2.c: New testcase.
	* gcc.target/powerpc/rlwimi.h: New file.
	* gcc.target/powerpc/rlwinm-0.c: New testcase.
	* gcc.target/powerpc/rlwinm-1.c: New testcase.
	* gcc.target/powerpc/rlwinm-2.c: New testcase.
	* gcc.target/powerpc/rlwinm.h: New file.

Added:
    trunk/gcc/testsuite/gcc.target/powerpc/rldic-0.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldic-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldic-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldicl-0.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldicl-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldicl-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldicr-0.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldicr-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldicr-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldicx.h
    trunk/gcc/testsuite/gcc.target/powerpc/rldimi-0.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldimi-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldimi-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/rldimi.h
    trunk/gcc/testsuite/gcc.target/powerpc/rlwimi-0.c
    trunk/gcc/testsuite/gcc.target/powerpc/rlwimi-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/rlwimi-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/rlwimi.h
    trunk/gcc/testsuite/gcc.target/powerpc/rlwinm-0.c
    trunk/gcc/testsuite/gcc.target/powerpc/rlwinm-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/rlwinm-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/rlwinm.h
Modified:
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]