diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/asm-function-14.C')
-rw-r--r-- | gcc/testsuite/g++.dg/asm-function-14.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/asm-function-14.C b/gcc/testsuite/g++.dg/asm-function-14.C new file mode 100644 index 00000000000..f7f4162aaee --- /dev/null +++ b/gcc/testsuite/g++.dg/asm-function-14.C @@ -0,0 +1,19 @@ +/* APPLE LOCAL file CW asm blocks */ +/* { dg-do assemble { target powerpc*-*-* } } */ +/* { dg-options "-fasm-blocks" } */ +/* Test for use of '*' in a relative jump. This is to conform with CW compiler. */ + +asm void foo() +{ + b *+8 + bl *+24 + b *-8 + bl *-32 + andi. r1,r0,2 +} + +int main (int argc, char * const argv[]) +{ + foo(); +} + |