Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr61142.c
blob4f48b0500d4536a1c1fc85aecf7d64e8664c5286
1 /* Check that @(r0,rm),rn insns load into r0. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-final { scan-assembler-times "mov.b\t@\\(r0,r\[0123456789\]\\),r0" 1 } } */
5 /* { dg-final { scan-assembler-times "mov.w\t@\\(r0,r\[0123456789\]\\),r0" 1 } } */
6 /* { dg-final { scan-assembler-times "mov.l\t@\\(r0,r\[0123456789\]\\),r0" 1 } } */
8 int
9 test_00 (const char* x, int a, int b, int c)
11 if (x[a] == 92)
12 return b;
13 return c;
16 int
17 test_01 (const short* x, int a, int b, int c)
19 if (x[a] == 92)
20 return b;
21 return c;
24 int
25 test_02 (const int* x, int a, int b, int c)
27 if (x[a] == 92)
28 return b;
29 return c;