aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/asm-block-3.C
blob: b7fa0fe475ab81b5e82e31807aacefbb487f7da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* APPLE LOCAL file CW asm blocks */
/* Test C++ keywords in asm-syntax blocks within functions.  */

/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-fasm-blocks" } */

void
bar ()
{
  register unsigned int theColor;
  register unsigned char bbb;
  asm {and++     bbb,theColor,24; };
  asm {and       bbb,theColor,24; };
  asm {and_eq    bbb,theColor,24; };
  asm {bitand    bbb,theColor,24; };
  asm {bitor     bbb,theColor,24; };
  asm {compl     bbb,theColor,24; };
  asm {not       bbb,theColor,24; };
  asm {not_eq    bbb,theColor,24; };
  asm {or        bbb,theColor,24; };
  asm {or_eq     bbb,theColor,24; };
  asm {xor       bbb,theColor,24; };
  asm {xor_eq    bbb,theColor,24; };
}