1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# frv testcase for cjmpl @($GRi,$GRj),$CCi,$cond
# mach: all
.include "testutils.inc"
start
.global cjmpl
cjmpl:
set_spr_immed 0x1b1b,cccr
set_spr_immed 0,lr
set_gr_addr ok1,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc0,1
fail
ok1:
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr bad,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc0,0
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr ok4,gr8
set_gr_immed 3,gr9 ; target gets aligned down
cjmpl @(gr8,gr9),cc1,0
fail
ok4:
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr bad,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc1,1
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr bad,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc2,0
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr bad,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc3,1
test_spr_immed 0,lr
pass
bad:
fail
|