aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/c-kvx.texi
blob: 74ba89f189c97122c41004ec0b711f80520417f8 (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
@c Copyright (C) 2023-2023 Free Software Foundation, Inc.
@c Contributed by Kalray SA.
@c This is part of the GAS manual.
@c For copying conditions, see the file as.texinfo.
@c man end

@ifset GENERIC
@page
@node KVX-Dependent
@chapter KVX Dependent Features
@end ifset

Labels followed by `::' are extern symbols.

@ifclear GENERIC
@node Machine Dependencies
@chapter KVX Dependent Features
@end ifclear

@cindex KVX support
@menu
* KVX Options::         Options
* KVX Directives::      KVX Machine Directives
@end menu

@node KVX Options
@section Options
@cindex KVX Options
@cindex options for KVX

@c man begin OPTIONS
@table @gcctabopt

@cindex @samp{--dump-insn} option, KVX
@item --dump-insn
Dump the full list of instructions.

@cindex @samp{-march} option, KVX
@item -march=
The assembler supports the following architectures: kv3-1, kv3-2.

@cindex @samp{--check-resources} option, KVX
@item --check-resources
Check that each bundle does not use more resources than available.  This is the
default.

@cindex @samp{--no-check-resources} option, KVX
@item --no-check-resources
Do not check that each bundle does not use more resources than available.

@cindex @samp{--generate-illegal-code} option, KVX
@item --generate-illegal-code
For debugging purposes only.  In order to properly work, the bundle is sorted
with respect to the issues it uses.  If this option is turned on the assembler
will not sort the bundle instructions and illegal bundles might be formed unless
they were properly sorted by hand.

@cindex @samp{--dump-table} option, KVX
@item --dump-table
Dump the table of opcodes.

@cindex @samp{--mpic} option, KVX
@cindex @samp{--mPIC} option, KVX
@item --mpic | --mPIC
Generate position independent code.

@cindex @samp{--mnopic} option, KVX
@item --mnopic
Generate position dependent code.

@cindex @samp{-m32} option, KVX
@item -m32
Generate 32-bits code.

@cindex @samp{--all-sfr} option, KVX
@item --all-sfr
This switch enables the register class "system register".  This register
class is used when performing system validation and allows the full class of
system registers to be used even on instructions that are only valid with some
specific system registers.

@cindex @samp{--diagnostics} option, KVX
@item --diagnostics
Print multi-line errors.  This is the default.

@cindex @samp{--no-diagnostics} option, KVX
@item --no-diagnostics
Print succinct diagnostics on one line.

@end table
@c man end

@node KVX Directives
@section KVX Machine Directives

@cindex machine directives, AArch64
@cindex AArch64 machine directives
@table @code

@cindex @code{.align} directive, KVX
@item .align ALIGNEMENT
Pad with NOPs until the next boundary with the required ALIGNEMENT.

@cindex @code{.dword} directive, KVX
@item .dword
Declare a double-word-sized (8 bytes) constant.

@cindex @code{.endp} directive, KVX
@item .endp [PROC]
This directive marks the end of the procedure PROC.  The name of the procedure
is always ignored (it is only here as a visual indicator).

@smallexample
.proc NAME
...
.endp NAME
@end smallexample

is equivalent to the more traditional

@smallexample
.type NAME, @@function
...
.size NAME,.-NAME
@end smallexample

@cindex @code{.file} directive, KVX
@item .file
This directive is only supported when producing ELF files.
@pxref{File,,@code{.file}} for details.

@cindex @code{.loc} directive, KVX
@item .loc FILENO LINENO
This directive is only supported when producting ELF files.
@pxref{Line,,@code{.line}} for details.

@cindex @code{.proc} directive, KVX
@item .proc PROC
This directive marks the start of procedure, the name of the procedure PROC is
mandatory and all @code{.proc} directive should be matched by exactly one
@code{.endp} directive.

@cindex @code{.word} directive, KVX
@item .word
Declare a word-sized (4 bytes) constant.

@end table