diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/asm-function-12.C')
-rw-r--r-- | gcc/testsuite/g++.dg/asm-function-12.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/asm-function-12.C b/gcc/testsuite/g++.dg/asm-function-12.C new file mode 100644 index 00000000000..c518550fcdd --- /dev/null +++ b/gcc/testsuite/g++.dg/asm-function-12.C @@ -0,0 +1,18 @@ +/* APPLE LOCAL file CW asm blocks */ +/* { dg-do assemble { target powerpc*-*-darwin* } } */ +/* { dg-options "-fasm-blocks" } */ + +asm void foo() +{ + b .+8 + bl .+24 + b .-8 + bl .-32 + andi. r1, r0, 3 +} + +int main (int argc, char * const argv[]) +{ + foo(); +} + |