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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [arc/] [math.s] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
# @OC@ test
2
 
3
# Stay away from operands with duplicate arguments (eg: add r0,r1,r1).
4
# They will be disassembled as they're macro counterparts (eg: asl r0,r1).
5
 
6
# reg,reg,reg
7
        @OC@ r0,r1,r2
8
        @OC@ r26,fp,sp
9
        @OC@ ilink1,ilink2,blink
10
        @OC@ r58,r59,lp_count
11
 
12
# shimm values
13
        @OC@ r0,r1,0
14
        @OC@ r0,0,r2
15
        @OC@ 0,r1,r2
16
        @OC@ r0,r1,-1
17
        @OC@ r0,-1,r2
18
        @OC@ -1,r1,r2
19
        @OC@ r0,r1,255
20
        @OC@ r0,255,r2
21
        @OC@ 255,r1,r2
22
        @OC@ r0,r1,-256
23
        @OC@ r0,-256,r2
24
        @OC@ -256,r1,r2
25
 
26
# limm values
27
        @OC@ r0,r1,256
28
        @OC@ r0,-257,r2
29
        @OC@ 511,r1,r2
30
        @OC@ r0,0x42424242,r2
31
        @OC@ 0x12345678,r1,0x12345678
32
 
33
# shimm and limm
34
        @OC@ r0,255,256
35
        @OC@ r0,256,255
36
        @OC@ 255,r1,256
37
        @OC@ 255,256,r2
38
        @OC@ 256,r1,255
39
        @OC@ 256,255,r2
40
 
41
# symbols
42
        @OC@ r0,r1,foo
43
 
44
# conditional execution
45
        @OC@.al r0,r1,r2
46
        @OC@.ra r3,r4,r5
47
        @OC@.eq r6,r7,r8
48
        @OC@.z r9,r10,r11
49
        @OC@.ne r12,r13,r14
50
        @OC@.nz r15,r16,r17
51
        @OC@.pl r18,r19,r20
52
        @OC@.p r21,r22,r23
53
        @OC@.mi r24,r25,r26
54
        @OC@.n r27,r28,r29
55
        @OC@.cs r30,r31,r32
56
        @OC@.c r33,r34,r35
57
        @OC@.lo r36,r37,r38
58
        @OC@.cc r39,r40,r41
59
        @OC@.nc r42,r43,r44
60
        @OC@.hs r45,r46,r47
61
        @OC@.vs r48,r49,r50
62
        @OC@.v r51,r52,r53
63
        @OC@.vc r54,r55,r56
64
        @OC@.nv r57,r58,r59
65
        @OC@.gt r60,r60,r0
66
        @OC@.ge r0,r0,0
67
        @OC@.lt r1,1,r1
68
        @OC@.le 2,r1,r2
69
        @OC@.hi r3,3,r3
70
        @OC@.ls 4,4,r4
71
        @OC@.pnz 5,r5,5
72
 
73
# flag setting
74
        @OC@.f r0,r1,r2
75
        @OC@.f r0,r1,1
76
        @OC@.f r0,1,r2
77
        @OC@.f 0,r1,r2
78
        @OC@.f r0,r1,512
79
        @OC@.f r0,512,r2
80
        @OC@.f 512,r1,r2
81
 
82
# conditional execution + flag setting
83
        @OC@.eq.f r0,r1,r2
84
        @OC@.ne.f r0,r1,0
85
        @OC@.lt.f r0,0,r2
86
        @OC@.gt.f 0,r1,r2
87
        @OC@.le.f r0,r1,512
88
        @OC@.ge.f r0,512,r2
89
        @OC@.n.f 512,r1,r2

powered by: WebSVN 2.1.0

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