OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /w11/tags/w11a_V0.6/tools/asm-11/tests-err
    from Rev 22 to Rev 24
    Reverse comparison

Rev 22 → Rev 24

/Makefile
0,0 → 1,32
# $Id: Makefile 525 2013-07-06 12:19:39Z mueller $
#
# Revision History:
# Date Rev Version Comment
# 2013-03-22 496 1.0 Initial version
#---
#
MAC_all = $(wildcard *.mac)
LSTERR_all = $(MAC_all:.mac=.lsterr)
LDART_all = $(MAC_all:.mac=.ldart)
LSTRT_all = $(MAC_all:.mac=.lstrt)
#
include $(RETROBASE)/tools/make/generic_asm11.mk
#
.PHONY : def alllst allrt allexp clean cleanrt
#
def : alllst
#
alllst : $(LSTERR_all)
#
allrt : $(LSTRT_all)
#
allexp : $(LSTERR_all)
@ asm-11_expect $^
#
clean :
@ rm -f $(LSTERR_all)
@ echo "Listing files removed"
 
cleanrt :
@ rm -f $(LDART_all) $(LSTRT_all)
@ echo "RT-11 generated files removed"
/testerr_0200_Aerror_branch.mac
0,0 → 1,69
; $Id: testerr_0200_Aerror_branch.mac 501 2013-03-30 13:53:39Z mueller $
;
; test A error code (Assembly error)
; case: range of branch or sob exceeded
;
.asect
.blkw 400
 
; range of branch (-128...+127)
 
; short range back
bb1: br bb1
 
; 2nd longest back branch
bb2: nop
.blkw 125.
br bb2
 
; longest back branch
bb3: nop
.blkw 126.
br bb3
 
; too long back branch
bb4: nop
.blkw 127.
br bb4 ;;!! A
 
; short range forward
br bf1
bf1: nop
 
; 2nd longest forward branch
br bf2
.blkw 126.
bf2: nop
 
; longest forward branch
br bf3
.blkw 127.
bf3: nop
 
; too long forward branch
br bf4 ;;!! A
.blkw 128.
bf4: nop
 
; range of sob (-63 ... 0)
 
; short range sob
 
s1: sob r1,s1
 
; 2nd longest sob
s2: nop
.blkw 60.
sob r2,s2
 
; longest sob
s3: nop
.blkw 61.
sob r3,s3
 
; too long sob
s4: nop
.blkw 62.
sob r4,s4 ;;!! A
 
.end
/testerr_0110_Nerror.mac
0,0 → 1,32
; $Id: testerr_0110_Nerror.mac 501 2013-03-30 13:53:39Z mueller $
;
; test N error code (Number error)
;
.asect
.blkw 400
 
; octal, implicit
 
.word 7
.word 8 ;;!! N
.word 9 ;;!! N
 
; octal, explicit ^o
 
.word ^o7
.word ^o8 ;;!! N
.word ^o9 ;;!! N
 
; binary via ^b
 
.word ^b101
.word ^b2 ;;!! N
.word ^b3 ;;!! N
.word ^b4 ;;!! N
.word ^b5 ;;!! N
.word ^b6 ;;!! N
.word ^b7 ;;!! N
.word ^b8 ;;!! N
.word ^b9 ;;!! N
 
.end
/testerr_0100_Berror.mac
0,0 → 1,29
; $Id: testerr_0100_Berror.mac 501 2013-03-30 13:53:39Z mueller $
;
; test B error code (bounding error)
;
.asect
.blkw 400
 
; word align code
 
t1: inc r0
1$: .byte 0
2$:
inc r1 ;;!! B
 
; word align .word
 
t2: .word 0
1$: .byte 1
2$:
.word 2 ;;!! B
 
; word align .blkw
 
t3: .blkw 2
1$: .blkb 3
2$:
.blkw 2 ;;!! B
 
.end
/testerr_0020_muldef_label.mac
0,0 → 1,23
; $Id: testerr_0020_muldef_label.mac 501 2013-03-30 13:53:39Z mueller $
;
; test multiple defined label response
;
.asect
 
; for normal labels
 
zero: .word zero ;;!! DM
one: .word one
zero: .word 0 ;;!! M
.word zero ;;!! D
 
; for local labels (in scope)
 
blk1: .word 0
1$: .word 1 ;;!! M
2$: .word 2
1$: .word 3 ;;!! M
.word 1$ ;;!! D
.word 2$
 
.end
/testerr_0130_Terror_inst.mac
0,0 → 1,21
; $Id: testerr_0130_Terror_inst.mac 501 2013-03-30 13:53:39Z mueller $
;
; test T error code (Truncation)
; truncation in instruction fields
;
.asect
.blkw 400
 
spl 7
spl 17 ;;!! T
 
mark 77
mark 100 ;;!! T
 
trap 377
trap 400 ;;!! T
 
emt 377
emt 400 ;;!! T
 
.end
/testerr_0140_Terror_expr.mac
0,0 → 1,11
; $Id: testerr_0140_Terror_expr.mac 501 2013-03-30 13:53:39Z mueller $
;
; test T error code (Truncation)
; truncation in expressions
;
.asect
.blkw 400
 
; not yet implemented...
 
.end
/testerr_0010_undef_label.mac
0,0 → 1,26
; $Id: testerr_0010_undef_label.mac 501 2013-03-30 13:53:39Z mueller $
;
; test undefined label response
;
.asect
 
; for normal labels
 
zero: .word zero
.word one ;;!! U
.word two ;;!! U
 
; for local labels (in scope)
 
blk1: .word 0
1$: .word blk1
.word 1$
.word 2$ ;;!! U
 
; for local labels (out-of-scope)
 
blk2: .word 0
2$: .word 1$ ;;!! U
.word 2$
 
.end
/testerr_0120_Terror_const.mac
0,0 → 1,45
; $Id: testerr_0120_Terror_const.mac 501 2013-03-30 13:53:39Z mueller $
;
; test T error code (Truncation)
; truncation of too large constants
;
.asect
.blkw 400
 
; octal, implicit
 
.word 123456
.word 177777
.word 1234567 ;;!! T
 
; octal, explicit ^o
 
.word ^o123456
.word ^o177777
.word ^o1234567 ;;!! T
 
; decimal, implicit trailing .
 
.word 65535.
.word 65536. ;;!! T
.word 65537. ;;!! T
 
; decimal, explicit ^d
 
.word ^d65535
.word ^d65536 ;;!! T
.word ^d65537 ;;!! T
 
; binary
 
.word ^b111111111111111
.word ^b1111111111111111
.word ^b11111111111111111 ;;!!T
 
; hex
 
.word ^xfff
.word ^xffff
.word ^x1ffff ;;!! T
 
.end
/.cvsignore
0,0 → 1,3
*.lsterr
*.ldart
*.lstrt
/testerr_0150_Terror_fpp.mac
0,0 → 1,67
; $Id: testerr_0150_Terror_fpp.mac 501 2013-03-30 13:53:39Z mueller $
;
; test T error code (trunction)
; fpp cases: fpp ac reg>3
;
.asect
.blkw 400
 
a: .word 0,0
.word 0,0
 
; r0:r3 ok as fpp ac
; r4:r7 forbidden as fpp ac
 
; test with gr type opcode, here addf
 
addf a,r0
addf a,r1
addf a,r2
addf a,r3
 
addf a,r4 ;;!! T
addf a,r5 ;;!! T
addf a,sp ;;!! T
addf a,pc ;;!! T
 
; test with rg type opcode, here stf
 
stf r0,a
stf r1,a
stf r2,a
stf r3,a
 
stf r4,a ;;!! T
stf r5,a ;;!! T
stf sp,a ;;!! T
stf pc,a ;;!! T
 
; for fsrc and fdst only register 0-5
; are allowed, but the assembler doesn't
; check for this.
 
; test with mulf
 
mulf r0,r0
mulf r1,r0
mulf r2,r0
mulf r3,r0
mulf r4,r0
mulf r5,r0
 
mulf sp,r0 ; ok, but traps
mulf pc,r0 ; ok, but traps
 
; test with stf
 
stf r0,r0
stf r0,r1
stf r0,r2
stf r0,r3
stf r0,r4
stf r0,r5
 
stf r0,sp ; ok, but traps
stf r0,pc ; ok, but traps
 
.end
/.
. Property changes : Added: svn:ignore ## -0,0 +1,35 ## +*.dep_ghdl +*.dep_isim +*.dep_xst +work-obj93.cf +*.vcd +*.ghw +*.sav +*.tmp +*.exe +ise +xflow.his +*.ngc +*.ncd +*.pcf +*.bit +*.msk +isim +isim.log +isim.wdb +fuse.log +*_[sft]sim.vhd +*_tsim.sdf +*_xst.log +*_tra.log +*_twr.log +*_map.log +*_par.log +*_pad.log +*_bgn.log +*_svn.log +*_sum.log +*_[dsft]sim.log +*.lsterr +*.ldart +*.lstrt

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.