Home | History | Annotate | Line # | Download | only in fr400
      1 # frv testcase for mclracc $ACC40k,$A
      2 # mach: all
      3 
      4 	.include "../testutils.inc"
      5 
      6 	start
      7 
      8 	.global mclracc
      9 mclracc:
     10 	set_accg_immed	0xff,accg0
     11 	set_acc_immed	-1,acc0
     12 	set_accg_immed	0xff,accg1
     13 	set_acc_immed	-1,acc1
     14 	set_accg_immed	0xff,accg2
     15 	set_acc_immed	-1,acc2
     16 	set_accg_immed	0xff,accg3
     17 	set_acc_immed	-1,acc3
     18 
     19 	mclracc		acc8,0		; nop
     20 	test_accg_immed	0xff,accg0
     21 	test_acc_immed	-1,acc0
     22 	test_accg_immed	0xff,accg1
     23 	test_acc_immed	-1,acc1
     24 	test_accg_immed	0xff,accg2
     25 	test_acc_immed	-1,acc2
     26 	test_accg_immed	0xff,accg3
     27 	test_acc_immed	-1,acc3
     28 
     29 	mclracc		acc8,1		; nop
     30 	test_accg_immed	0xff,accg0
     31 	test_acc_immed	-1,acc0
     32 	test_accg_immed	0xff,accg1
     33 	test_acc_immed	-1,acc1
     34 	test_accg_immed	0xff,accg2
     35 	test_acc_immed	-1,acc2
     36 	test_accg_immed	0xff,accg3
     37 	test_acc_immed	-1,acc3
     38 
     39 	mclracc		acc2,0
     40 	test_accg_immed	0xff,accg0
     41 	test_acc_immed	-1,acc0
     42 	test_accg_immed	0xff,accg1
     43 	test_acc_immed	-1,acc1
     44 	test_accg_immed	0,accg2
     45 	test_acc_immed	0,acc2
     46 	test_accg_immed	0xff,accg3
     47 	test_acc_immed	-1,acc3
     48 
     49 	mclracc		acc3,1
     50 	test_accg_immed	0xff,accg0
     51 	test_acc_immed	-1,acc0
     52 	test_accg_immed	0xff,accg1
     53 	test_acc_immed	-1,acc1
     54 	test_accg_immed	0,accg2
     55 	test_acc_immed	0,acc2
     56 	test_accg_immed	0,accg3
     57 	test_acc_immed	0,acc3
     58 
     59 	mclracc		acc0,0
     60 	test_accg_immed	0,accg0
     61 	test_acc_immed	0,acc0
     62 	test_accg_immed	0xff,accg1
     63 	test_acc_immed	-1,acc1
     64 	test_accg_immed	0,accg2
     65 	test_acc_immed	0,acc2
     66 	test_accg_immed	0,accg3
     67 	test_acc_immed	0,acc3
     68 
     69 	mclracc		acc0,1
     70 	test_accg_immed	0,accg0
     71 	test_acc_immed	0,acc0
     72 	test_accg_immed	0,accg1
     73 	test_acc_immed	0,acc1
     74 	test_accg_immed	0,accg2
     75 	test_acc_immed	0,acc2
     76 	test_accg_immed	0,accg3
     77 	test_acc_immed	0,acc3
     78 
     79 	pass
     80