PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / cbcond-1.c
blob74fe475a6c541c44bf01efd1953d58b5cbd38b8d
1 /* { dg-do compile } */
2 /* { dg-options "-O -mcbcond" } */
4 extern void foo (void);
5 extern void bar (void);
7 void cbcondne (int a)
9 if (a != 0)
10 foo ();
11 bar ();
14 void cbconde (int a)
16 if (a == 0)
17 foo ();
18 bar ();
21 void cbcondl (int a)
23 if (a < 0)
24 foo ();
25 bar ();
28 void cbcondle (int a)
30 if (a <= 0)
31 foo ();
32 bar ();
35 /* { dg-final { scan-assembler "cwbe\t%" { target ilp32 } } } */
36 /* { dg-final { scan-assembler "cwbne\t%" { target ilp32 } } } */
37 /* { dg-final { scan-assembler "cwbl\t%" } } */
38 /* { dg-final { scan-assembler "cwble\t%" } } */