aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/asm-function-15.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.apple/asm-function-15.c')
-rw-r--r--gcc/testsuite/gcc.apple/asm-function-15.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/asm-function-15.c b/gcc/testsuite/gcc.apple/asm-function-15.c
new file mode 100644
index 00000000000..4a5dd742fd3
--- /dev/null
+++ b/gcc/testsuite/gcc.apple/asm-function-15.c
@@ -0,0 +1,19 @@
+/* APPLE LOCAL file CW asm blocks */
+/* { dg-do assemble } */
+/* { 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();
+}
+