builtin_bswap_v3.c: New testcase.
* gcc.target/cris/builtin_bswap_v3.c: New testcase. * gcc.target/cris/builtin_bswap_v8.c: New testcase. From-SVN: r128044
This commit is contained in:
parent
df638b2780
commit
9816d522ce
3 changed files with 27 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
|
||||
|
||||
* gcc.target/cris/builtin_bswap_v3.c: New testcase.
|
||||
* gcc.target/cris/builtin_bswap_v8.c: New testcase.
|
||||
|
||||
* gcc.dg/torture/cris-asm-mof-1.c: Skip if -march defined.
|
||||
|
||||
2007-09-02 David Daney <ddaney@avtrex.com>
|
||||
|
|
12
gcc/testsuite/gcc.target/cris/builtin_bswap_v3.c
Normal file
12
gcc/testsuite/gcc.target/cris/builtin_bswap_v3.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* Check that we don't use the swap insn for bswap by checking assembler
|
||||
output. The swap instruction was added in v8. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "" { "cris-*-elf" } { "-march*" } { "" } } */
|
||||
/* { dg-options "-O2 -march=v3" } */
|
||||
/* { dg-final { scan-assembler-not "\[ \t\]swapwb\[ \t\]" } } */
|
||||
|
||||
int
|
||||
f (int a)
|
||||
{
|
||||
return __builtin_bswap32(a);
|
||||
}
|
12
gcc/testsuite/gcc.target/cris/builtin_bswap_v8.c
Normal file
12
gcc/testsuite/gcc.target/cris/builtin_bswap_v8.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* Check that we use the swap insn for bswap by checking assembler
|
||||
output. The swap instruction was added in v8. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "" { "cris-*-elf" } { "-march*" } { "" } } */
|
||||
/* { dg-options "-O2 -march=v8" } */
|
||||
/* { dg-final { scan-assembler "\[ \t\]swapwb\[ \t\]" } } */
|
||||
|
||||
int
|
||||
f (int a)
|
||||
{
|
||||
return __builtin_bswap32(a);
|
||||
}
|
Loading…
Add table
Reference in a new issue