summaryrefslogtreecommitdiff
path: root/testcase/1.c
diff options
context:
space:
mode:
Diffstat (limited to 'testcase/1.c')
-rw-r--r--testcase/1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/testcase/1.c b/testcase/1.c
index 91cae0f..14f6da2 100644
--- a/testcase/1.c
+++ b/testcase/1.c
@@ -1,6 +1,16 @@
int global;
static char local;
+#if defined (__bfin__)
+void bfin_test(void)
+{
+ printf("PCREL12_JUMP_S: JUMP.S _bfin_test\n");
+ printf("Do not have a good idea about how to"
+ "return from here, thus just halt here\n");
+ while(1);
+}
+#endif
+
void hello(int arg)
{
switch (arg) {
@@ -226,6 +236,12 @@ int rtems(int argc, char **argv)
"nop\n\t": : :
);
+#elif defined (__bfin__)
+ __asm__ volatile (
+ "JUMP.S _bfin_test\n\t"
+ "1:\n\t"
+ "nop\n\t"
+ );
#else
/* other archs */
#endif