1 /* { dg-do compile } */ 2 /* { dg-require-effective-target arm32 } */ 3 /* { dg-options "-O2" } */ 4 zero_extendsidi_negsi(unsigned int x)5signed long long zero_extendsidi_negsi (unsigned int x) 6 { 7 return -x; 8 } 9 /* 10 Expected output: 11 rsb r0, r0, #0 12 mov r1, #0 13 */ 14 /* { dg-final { scan-assembler-times "rsbs?\\t...?, ...?, #0" 1 } } */ 15 /* { dg-final { scan-assembler-times "mov" 1 } } */ 16