* gcc.target/powerpc/builtins-1-be.c <vclzb>: Rename duplicate test
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / cbcond-2.c
blob3c03d444e72d6b921ef7f43d3c5c110b429fac74
1 /* { dg-do compile } */
2 /* { dg-options "-O -mcbcond" } */
3 /* { dg-require-effective-target lp64 } */
5 extern void foo (void);
6 extern void bar (void);
8 void cbcondne (long a)
10 if (a != 0)
11 foo ();
12 bar ();
15 void cbconde (long a)
17 if (a == 0)
18 foo ();
19 bar ();
22 void cbcondl (long a)
24 if (a < 0)
25 foo ();
26 bar ();
29 void cbcondle (long a)
31 if (a <= 0)
32 foo ();
33 bar ();
36 /* { dg-final { scan-assembler "cxbe\t%" } } */
37 /* { dg-final { scan-assembler "cxbne\t%" } } */
38 /* { dg-final { scan-assembler "cxbl\t%" } } */
39 /* { dg-final { scan-assembler "cxble\t%" } } */