1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
5 test_csneg32_condasn1(int w0
,
11 /* { dg-final { scan-assembler "csneg\tw\[0-9\]*.*ne" } } */
12 w4
= (w0
== w1
) ? -w3
: w2
;
17 test_csneg32_condasn2(int w0
,
23 /* { dg-final { scan-assembler "csneg\tw\[0-9\]*.*eq" } } */
24 w4
= (w0
== w1
) ? w3
: -w2
;
29 test_csneg64_condasn1(long long x0
,
35 /* { dg-final { scan-assembler "csneg\tx\[0-9\]*.*ne" } } */
36 x4
= (x0
== x1
) ? -x3
: x2
;
41 test_csneg64_condasn2(long long x0
,
47 /* { dg-final { scan-assembler "csneg\tx\[0-9\]*.*eq" } } */
48 x4
= (x0
== x1
) ? x3
: -x2
;
52 int test_csneg_cmp(int x
)
54 /* { dg-final { scan-assembler "csneg\tw\[0-9\]" } } */
61 test_csneg_uxtw (unsigned int a
,
65 /* { dg-final { scan-assembler "csneg\tw\[0-9\]*.*ne" } } */
66 /* { dg-final { scan-assembler-not "uxtw\tw\[0-9\]*.*" } } */