2 /* { dg-options "-O2 -fno-inline --save-temps" } */
4 extern void abort (void);
9 /* { dg-final { scan-assembler "neg\tx\[0-9\]+" } } */
14 neg64_in_dreg (long long a
)
16 /* { dg-final { scan-assembler "neg\td\[0-9\]+, d\[0-9\]+" } } */
17 register long long x
asm ("d8") = a
;
18 register long long y
asm ("d9");
19 asm volatile ("" : : "w" (x
));
21 asm volatile ("" : : "w" (y
));
28 /* { dg-final { scan-assembler "neg\tw\[0-9\]+" } } */
35 /* { dg-final { scan-assembler "neg\tv\[0-9\]+\.2s, v\[0-9\]+\.2s" } } */
36 register int x
asm ("s8") = a
;
37 register int y
asm ("s9");
38 asm volatile ("" : : "w" (x
));
40 asm volatile ("" : : "w" (y
));
55 if (neg64_in_dreg (a
) != -61)
58 if (neg32 (b
) != -313)
61 if (neg32_in_sreg (b
) != -313)