1 /* Check that the SH specific sh_optimize_sett_clrt RTL optimization pass
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
5 /* { dg-skip-if "" { "sh*-*-*" } { "-m5*" } { "" } } */
6 /* { dg-final { scan-assembler-times "clrt" 2 } } */
7 /* { dg-final { scan-assembler-times "sett" 1 } } */
10 test_00 (long long a
, long long b
, long long c
, int d
)
12 /* One of the blocks should have a clrt and the other one should not. */
20 test_01 (long long a
, long long b
)
22 /* Must see a clrt because T bit is undefined at function entry. */
27 test_02 (const char* a
)
29 /* Must not see a sett after the inlined strlen. */
30 return __builtin_strlen (a
);
34 test_03 (int a
, int b
, int c
, int d
)
36 /* One of the blocks should have a sett and the other one should not. */