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