mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
tests: cris: force inlining
The CRIS tests expect that functions marked inline are always inline. With newer versions of GCC, building them results warnings like the following and spurious failures when they are run. In file included from tests/tcg/cris/check_moveq.c:5:0: tests/tcg/cris/crisutils.h:66:20: warning: inlining failed in call to 'cris_tst_cc.constprop.0': call is unlikely and code size would grow [-Winline] tests/tcg/cris/check_moveq.c:28:13: warning: called from here [-Winline] Use the always_inline attribute when building them to fix this. Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Rabin Vincent <rabinv@axis.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
25930ed60a
commit
21ce148c7e
10 changed files with 28 additions and 26 deletions
|
@ -4,21 +4,21 @@
|
|||
#include "sys.h"
|
||||
#include "crisutils.h"
|
||||
|
||||
static inline int cris_bound_b(int v, int b)
|
||||
static always_inline int cris_bound_b(int v, int b)
|
||||
{
|
||||
int r = v;
|
||||
asm ("bound.b\t%1, %0\n" : "+r" (r) : "ri" (b));
|
||||
return r;
|
||||
}
|
||||
|
||||
static inline int cris_bound_w(int v, int b)
|
||||
static always_inline int cris_bound_w(int v, int b)
|
||||
{
|
||||
int r = v;
|
||||
asm ("bound.w\t%1, %0\n" : "+r" (r) : "ri" (b));
|
||||
return r;
|
||||
}
|
||||
|
||||
static inline int cris_bound_d(int v, int b)
|
||||
static always_inline int cris_bound_d(int v, int b)
|
||||
{
|
||||
int r = v;
|
||||
asm ("bound.d\t%1, %0\n" : "+r" (r) : "ri" (b));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue