From: Hans-Peter Nilsson Date: Sat, 1 Nov 2008 22:19:26 +0000 (+0000) Subject: re PR target/37939 (CRIS port: no addi insn) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=195b3ab60affaf7af948447efac2b34bc3eb2ab5;p=platform%2Fupstream%2Fgcc.git re PR target/37939 (CRIS port: no addi insn) PR target/37939 * gcc.target/cris/biap.c: New test. From-SVN: r141525 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb6b072..d152f85 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-11-01 Hans-Peter Nilsson + + PR target/37939 + * gcc.target/cris/biap.c: New test. + 2008-11-01 Janus Weil PR fortran/36426 diff --git a/gcc/testsuite/gcc.target/cris/biap.c b/gcc/testsuite/gcc.target/cris/biap.c new file mode 100644 index 0000000..1f3b436 --- /dev/null +++ b/gcc/testsuite/gcc.target/cris/biap.c @@ -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; +}