URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 818 |
.text
|
.text
|
; check that forward references work for all operands.
|
; check that forward references work for all operands.
|
inc r0,#fwd1
|
inc r0,#fwd1
|
set1 0,#fwd1
|
set1 0,#fwd1
|
bn 0,#fwd1,.
|
bn 0,#fwd1,.
|
add r0,#fwd1
|
add r0,#fwd1
|
mov r0,(r0,fwd1)
|
mov r0,(r0,fwd1)
|
mov fwd1,#0
|
mov fwd1,#0
|
mov rx,#fwd1
|
mov rx,#fwd1
|
mov 0,#fwd1
|
mov 0,#fwd1
|
jmpf fwd1
|
jmpf fwd1
|
bge fwd1+.
|
bge fwd1+.
|
bge Rx,#0,fwd1+.
|
bge Rx,#0,fwd1+.
|
bge r0,r0,fwd1+.
|
bge r0,r0,fwd1+.
|
br fwd1+.
|
br fwd1+.
|
fwd1 = 1
|
fwd1 = 1
|
|
|
; check that global references work for those operands that support them
|
; check that global references work for those operands that support them
|
.globl global
|
.globl global
|
|
|
mov global,#0
|
mov global,#0
|
mov rx,#global
|
mov rx,#global
|
mov 0,#global
|
mov 0,#global
|
; jmpf global
|
; jmpf global
|
bge global
|
bge global
|
bge Rx,#0,global
|
bge Rx,#0,global
|
bge r0,r0,global
|
bge r0,r0,global
|
br global
|
br global
|
|
|
; check branch operations to local labels
|
; check branch operations to local labels
|
bge .L1
|
bge .L1
|
bge Rx,#0,.L1
|
bge Rx,#0,.L1
|
bge r0,r0,.L1
|
bge r0,r0,.L1
|
br .L1
|
br .L1
|
.L1:
|
.L1:
|
bge .L1
|
bge .L1
|
bge Rx,#0,.L1
|
bge Rx,#0,.L1
|
bge r0,r0,.L1
|
bge r0,r0,.L1
|
br .L1
|
br .L1
|
|
|
; check immediate operands thoroughly
|
; check immediate operands thoroughly
|
mov 0,#global+4
|
mov 0,#global+4
|
mov 0,#.L1
|
mov 0,#.L1
|
mov 0,#.L1+4
|
mov 0,#.L1+4
|
mov 0,#global-.
|
mov 0,#global-.
|
mov 0,#global-.L1
|
mov 0,#global-.L1
|
|
|
jmpf global
|
jmpf global
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.