Commit f568cd7b by Jesper Nilsson Committed by Hans-Peter Nilsson

builtin_clz_v0.c: New testcase.

	* gcc.target/cris/builtin_clz_v0.c: New testcase.
	* gcc.target/cris/builtin_clz_v3.c: New testcase.

From-SVN: r128033
parent f819c0c0
2007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
* gcc.target/cris/builtin_clz_v0.c: New testcase.
* gcc.target/cris/builtin_clz_v3.c: New testcase.
2007-09-02 Tobias Schluter <tobi@gcc.gnu.org>
* gfortran.dg/substr_6.f90: New test.
/* Check that we don't use the lz insn for clz by checking assembler output.
The lz insn was implemented in CRIS v3 (ETRAX 4). */
/* { dg-do compile } */
/* { dg-skip-if "" { "cris-*-elf" } { "-march*" } { "" } } */
/* { dg-options "-O2 -march=v0" } */
/* { dg-final { scan-assembler-not "\[ \t\]lz\[ \t\]" } } */
int
f (int a)
{
return __builtin_clz(a);
}
/* Check that we use the lz insn for clz by checking assembler output.
The lz insn was implemented in CRIS v3 (ETRAX 4). */
/* { dg-do compile } */
/* { dg-skip-if "" { "cris-*-elf" } { "-march*" } { "" } } */
/* { dg-options "-O2 -march=v8" } */
/* { dg-final { scan-assembler "\[ \t\]lz\[ \t\]" } } */
int
f (int a)
{
return __builtin_clz(a);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment