Commit 951eb5c7 by Oleg Endo

re PR tree-optimization/54386 (Unaligned mem load wrongly generated for inlined…

re PR tree-optimization/54386 (Unaligned mem load wrongly generated for inlined inline/static function)

	PR tree-optimization/54386
	* gcc.target/sh/pr54386.c: New.

From-SVN: r195742
parent 16e24756
2012-02-04 Oleg Endo <olegendo@gcc.gnu.org>
PR tree-optimization/54386
* gcc.target/sh/pr54386.c: New.
2013-02-04 Paul Thomas <pault@gcc.gnu.org> 2013-02-04 Paul Thomas <pault@gcc.gnu.org>
PR fortran/56008 PR fortran/56008
......
/* Check that the inlined mem load is not handled as unaligned load. */
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-O2" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m5*"} { "" } } */
/* { dg-final { scan-assembler-not "shll|extu|or" } } */
static inline int
readint0 (int* x)
{
return *x;
}
int
test0 (int* x)
{
return readint0 (x);
}
inline int
readint1 (int* x)
{
return *x;
}
int
test1 (int* x)
{
return readint1 (x);
}
static int
readint2 (int* x)
{
return *x;
}
int
test2 (int* x)
{
return readint2 (x);
}
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