libstdc++: Move gcc.gnu.org and sourceware.org links to https
[official-gcc.git] / gcc / testsuite / gcc.target / arm / csinc-1.c
blob255e6e89f50c0fd3ec476bb36fcc76bc395e3d68
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_arch_v8_1m_main_ok } */
3 /* { dg-options "-O2" } */
4 /* { dg-add-options arm_arch_v8_1m_main } */
6 int
7 test_csinc32_condasn1(int w0, int w1, int w2, int w3)
9 int w4;
11 /* { dg-final { scan-assembler "csinc\tr\[0-9\]*.*ne" } } */
12 w4 = (w0 == w1) ? (w2 + 1) : w3;
13 return w4;
16 int
17 test_csinc32_condasn2(int w0, int w1, int w2, int w3)
19 int w4;
21 /* { dg-final { scan-assembler "csinc\tr\[0-9\]*.*eq" } } */
22 w4 = (w0 == w1) ? w3 : (w2 + 1);
23 return w4;