aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/asm-block-4.C
blob: 75886faa0382d2e38a8a3f35a3b756e6afe1238d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* APPLE LOCAL file CW asm blocks */
/* Test C++ keywords that are binary operators in asm-syntax blocks within functions.  */

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

int baz (int arg1) {
  asm {
    mr  r2, arg1
    add r3, r2, r2
    and r3, arg1, r3
  }
}