URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 90 |
Rev 458 |
Line 30... |
Line 30... |
#include "spr-defs.h"
|
#include "spr-defs.h"
|
|
|
#define SET_ARITH_FLAG 0 /* If this is not set this test has no meaning */
|
#define SET_ARITH_FLAG 0 /* If this is not set this test has no meaning */
|
|
|
.section .except, "ax"
|
.section .except, "ax"
|
l.movhi r10,0x8000
|
|
|
|
.section .text
|
|
.org 0x100
|
.org 0x100
|
_reset:
|
_reset:
|
l.nop
|
l.nop
|
|
|
l.movhi r10,0x8000
|
l.movhi r10,0x8000
|
l.addi r11,r0,-1
|
l.addi r11,r0,-1
|
l.addi r12,r0,2
|
l.addi r12,r0,2
|
l.addi r13,r0,0x5678
|
l.addi r13,r0,0x5678
|
l.movhi r14,0xdead
|
l.movhi r14,0xdead
|
l.ori r14,r14,0xdead
|
l.ori r14,r14,0xdead
|
l.addi r15,r0,0xdead
|
l.addi r15,r0,0xdead
|
|
l.movhi r3,hi(start)
|
|
l.ori r3,r3,lo(start)
|
|
l.jr r3
|
|
l.nop
|
|
|
|
|
|
.section .text
|
|
start:
|
/* Test start */
|
/* Test start */
|
|
|
#if SET_ARITH_FLAG
|
#if SET_ARITH_FLAG
|
/* Simple zero test */
|
/* Simple zero test */
|
l.addi r1,r0,1 /* f = 0 */
|
l.addi r1,r0,1 /* f = 0 */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.