diff options
author | Peng Fan <van.freenix@gmail.com> | 2013-07-22 10:18:47 +0800 |
---|---|---|
committer | Peng Fan <van.freenix@gmail.com> | 2013-09-05 13:47:39 +0800 |
commit | 0c4eed48fd7b9983ecf4a94c49cecb59de6c5556 (patch) | |
tree | 486bb1e920879a2d041f79845e3c1d3b55d1e0f0 /testcase | |
parent | 400bce45a8532b2377c5692da80666196ce09c64 (diff) |
Moxie Support
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Diffstat (limited to 'testcase')
-rw-r--r-- | testcase/1.c | 13 | ||||
-rw-r--r-- | testcase/wscript | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/testcase/1.c b/testcase/1.c index a643d77..18e643b 100644 --- a/testcase/1.c +++ b/testcase/1.c @@ -37,6 +37,11 @@ void hello(int arg) case 13: printf("SPARC 13 'mov hello, %%l4'\n"); break; +#elif defined (__moxie__) + case 10: + printf("Just test 'beq hello, PCREL10', so just halt here\n"); + while(1); + break; #else #endif @@ -264,6 +269,14 @@ int rtems(int argc, char **argv) if (global == 22) printf("R_LM32_32 pass\n"); + +#elif defined (__moxie__) + __asm__ volatile ( + "ldi.l $r0, 10\n\t" + "ldi.l $r1, 10\n\t" + "cmp $r0, $r1\n\t" + "beq hello\n\t"); + #else /* other archs */ #endif diff --git a/testcase/wscript b/testcase/wscript index 0a42011..8698fd7 100644 --- a/testcase/wscript +++ b/testcase/wscript @@ -85,7 +85,7 @@ def build(bld): '--entry', '_my_main'], source = ['1.c', '2.c']) - elif arch == 'lm32': + elif arch == 'lm32' or arch == 'moxie': bld(target = 'test.rap', features = 'c rap', xxxx = 'hello', |