Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr54386.c
blobb04b21295140e5fcab184cd331e68f6fffbfe9a7
1 /* Check that the inlined mem load is not handled as unaligned load. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-final { scan-assembler-not "shll|extu|or" } } */
6 static inline int
7 readint0 (int* x)
9 return *x;
12 int
13 test0 (int* x)
15 return readint0 (x);
18 inline int
19 readint1 (int* x)
21 return *x;
24 int
25 test1 (int* x)
27 return readint1 (x);
30 static int
31 readint2 (int* x)
33 return *x;
36 int
37 test2 (int* x)
39 return readint2 (x);