[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr15184-2.c
bloba6cb9ebc24eb374b9a25aa79235fa17a04109f42
1 /* PR 15184 second two tests
2 /* { dg-do compile { target ia32 } } */
3 /* { dg-options "-O2 -march=pentiumpro" } */
5 #define regparm __attribute__((__regparm__(1)))
7 extern unsigned short y;
9 void regparm g0(unsigned char c)
11 y = (y & 0xFF00) | (unsigned short)c;
14 void regparm g1(unsigned char c)
16 y = (y & 0x00FF) | ((unsigned short)c << 8);
19 /* Each function should compile down to a byte move from
20 the input register into y, possibly at an offset within y. */
21 /* { dg-final { scan-assembler-times "movb\[ \\t\]+%al" 2 } } */