aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/asm-function-16.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.apple/asm-function-16.c')
-rw-r--r--gcc/testsuite/gcc.apple/asm-function-16.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/asm-function-16.c b/gcc/testsuite/gcc.apple/asm-function-16.c
new file mode 100644
index 00000000000..41a8a05cc12
--- /dev/null
+++ b/gcc/testsuite/gcc.apple/asm-function-16.c
@@ -0,0 +1,21 @@
+/* APPLE LOCAL file CW asm blocks */
+/* { dg-do assemble { target powerpc*-*-* } } */
+/* { dg-options "-fasm-blocks" } */
+
+signed short foo(signed int a, signed short b)
+{
+ b = a * -1;
+
+ asm {
+ bl *+24
+ bl *-32
+ b .+8
+ }
+ return b;
+}
+
+int main (int argc, char * const argv[])
+{
+ return foo(1,2);
+}
+