re PR target/37939 (CRIS port: no addi insn)

PR target/37939
	* gcc.target/cris/biap.c: New test.

From-SVN: r141525
This commit is contained in:
Hans-Peter Nilsson 2008-11-01 22:19:26 +00:00 committed by Hans-Peter Nilsson
parent aa05ad8653
commit 195b3ab60a
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-11-01 Hans-Peter Nilsson <hp@axis.com>
PR target/37939
* gcc.target/cris/biap.c: New test.
2008-11-01 Janus Weil <janus@gcc.gnu.org>
PR fortran/36426

View File

@ -0,0 +1,11 @@
/* Make sure ADDI is combined and emitted successfully.
See also PR37939. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "addi" } } */
/* { dg-final { scan-assembler-not "lsl" } } */
int xyzzy (int r10, int r11)
{
return r11 * 4 + r10;
}