1 /* Check that when taking the complement of the T bit using the negc
2    instruction pattern, the constant -1 is loaded only once.
3    On SH2A this test is skipped because the movrt instruction is used
4    to get the complement of the T bit.  */
5 /* { dg-do compile { target "sh*-*-*" } } */
6 /* { dg-options "-O1 -mbranch-cost=2" } */
7 /* { dg-skip-if "" { "sh*-*-*" } { "-m5*" "-m2a*" } { "" } } */
8 /* { dg-final { scan-assembler-times "mov\t#-1" 1 } } */
9 
10 void
testfunc_00(int * a,int * b,int c,int d)11 testfunc_00 (int* a, int* b, int c, int d)
12 {
13   b[0] = a[0] != c;
14   b[1] = a[1] != d;
15   b[2] = a[2] != c;
16   b[3] = a[3] != d;
17 }
18 
19