1 /* Check that compare-branch is inverted properly.
2    Example:
3 	clrt		->	clrt
4 	subc	r0,r6		subc	r0,r6
5 	mov	r3,r7		mov	r3,r7
6 	subc	r1,r7		subc	r1,r7
7 	mov	#0,r1		tst	r7,r7
8 	cmp/hi	r1,r7		bf	.L111
9 	bt	.L111		bra	.L197
10 	bra	.L197
11 	nop
12 */
13 /* { dg-do compile }  */
14 /* { dg-options "-O2" } */
15 /* { dg-final { scan-assembler-not "cmp/hi" } } */
16 /* { dg-final { scan-assembler-not "mov\t#0" } } */
17 
18 int other_func (long long);
19 int
test_00(unsigned long long a,unsigned long long b)20 test_00 (unsigned long long a, unsigned long long b)
21 {
22   if ((a - b) > 0xFFFFFFFFLL)
23     return other_func (a - b);
24   return 20;
25 }
26