aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/riscv-ext.texi
blob: bd3d29c75ab55d2b9a8a015f94c60835374e4d08 (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
@c Copyright (C) 2025 Free Software Foundation, Inc.
@c This is part of the GCC manual.
@c For copying conditions, see the file gcc/doc/include/fdl.texi.

@c This file is generated automatically using
@c  gcc/config/riscv/gen-riscv-ext-texi.cc from:
@c       gcc/config/riscv/riscv-ext.def
@c       gcc/config/riscv/riscv-opts.h

@c Please *DO NOT* edit manually.

@multitable @columnfractions .10 .10 .80
@headitem Extension Name @tab Supported Version @tab Description

@item g
@tab -
@tab General-purpose computing base extension, @samp{g} will expand to
@samp{i}, @samp{m}, @samp{a}, @samp{f}, @samp{d}, @samp{zicsr} and
@samp{zifencei}.

@item e
@tab 2.0
@tab Reduced base integer extension

@item i
@tab 2.0 2.1
@tab Base integer extension

@item m
@tab 2.0
@tab Integer multiplication and division extension

@item a
@tab 2.0 2.1
@tab Atomic extension

@item f
@tab 2.0 2.2
@tab Single-precision floating-point extension

@item d
@tab 2.0 2.2
@tab Double-precision floating-point extension

@item c
@tab 2.0
@tab Compressed extension

@item b
@tab 1.0
@tab b extension

@item v
@tab 1.0
@tab Vector extension

@item h
@tab 1.0
@tab Hypervisor extension

@item zic64b
@tab 1.0
@tab Cache block size isf 64 bytes

@item zicbom
@tab 1.0
@tab Cache-block management extension

@item zicbop
@tab 1.0
@tab Cache-block prefetch extension

@item zicboz
@tab 1.0
@tab Cache-block zero extension

@item ziccamoa
@tab 1.0
@tab Main memory supports all atomics in A

@item ziccif
@tab 1.0
@tab Main memory supports instruction fetch with atomicity requirement

@item zicclsm
@tab 1.0
@tab Main memory supports misaligned loads/stores

@item ziccrse
@tab 1.0
@tab Main memory supports forward progress on LR/SC sequences

@item zicfilp
@tab 1.0
@tab zicfilp extension

@item zicfiss
@tab 1.0
@tab zicfiss extension

@item zicntr
@tab 2.0
@tab Standard extension for base counters and timers

@item zicond
@tab 1.0
@tab Integer conditional operations extension

@item zicsr
@tab 2.0
@tab Control and status register access extension

@item zifencei
@tab 2.0
@tab Instruction-fetch fence extension

@item zihintntl
@tab 1.0
@tab Non-temporal locality hints extension

@item zihintpause
@tab 2.0
@tab Pause hint extension

@item zihpm
@tab 2.0
@tab Standard extension for hardware performance counters

@item zimop
@tab 1.0
@tab zimop extension

@item zilsd
@tab 1.0
@tab Load/Store pair instructions extension

@item zmmul
@tab 1.0
@tab Integer multiplication extension

@item za128rs
@tab 1.0
@tab Reservation set size of 128 bytes

@item za64rs
@tab 1.0
@tab Reservation set size of 64 bytes

@item zaamo
@tab 1.0
@tab zaamo extension

@item zabha
@tab 1.0
@tab zabha extension

@item zacas
@tab 1.0
@tab zacas extension

@item zalrsc
@tab 1.0
@tab zalrsc extension

@item zawrs
@tab 1.0
@tab Wait-on-reservation-set extension

@item zama16b
@tab 1.0
@tab Zama16b extension, Misaligned loads, stores, and AMOs to main memory regions that do not cross a naturally aligned 16-byte boundary are atomic.

@item zfa
@tab 1.0
@tab Additional floating-point extension

@item zfbfmin
@tab 1.0
@tab zfbfmin extension

@item zfh
@tab 1.0
@tab Half-precision floating-point extension

@item zfhmin
@tab 1.0
@tab Minimal half-precision floating-point extension

@item zfinx
@tab 1.0
@tab Single-precision floating-point in integer registers extension

@item zdinx
@tab 1.0
@tab Double-precision floating-point in integer registers extension

@item zca
@tab 1.0
@tab Integer compressed instruction extension

@item zcb
@tab 1.0
@tab Simple compressed instruction extension

@item zcd
@tab 1.0
@tab Compressed double-precision floating point loads and stores extension

@item zce
@tab 1.0
@tab Compressed instruction extensions for embedded processors

@item zcf
@tab 1.0
@tab Compressed single-precision floating point loads and stores extension

@item zcmop
@tab 1.0
@tab zcmop extension

@item zcmp
@tab 1.0
@tab Compressed push pop extension

@item zcmt
@tab 1.0
@tab Table jump instruction extension

@item zclsd
@tab 1.0
@tab Compressed load/store pair instructions extension

@item zba
@tab 1.0
@tab Address calculation extension

@item zbb
@tab 1.0
@tab Basic bit manipulation extension

@item zbc
@tab 1.0
@tab Carry-less multiplication extension

@item zbkb
@tab 1.0
@tab Cryptography bit-manipulation extension

@item zbkc
@tab 1.0
@tab Cryptography carry-less multiply extension

@item zbkx
@tab 1.0
@tab Cryptography crossbar permutation extension

@item zbs
@tab 1.0
@tab Single-bit operation extension

@item zk
@tab 1.0
@tab Standard scalar cryptography extension

@item zkn
@tab 1.0
@tab NIST algorithm suite extension

@item zknd
@tab 1.0
@tab AES Decryption extension

@item zkne
@tab 1.0
@tab AES Encryption extension

@item zknh
@tab 1.0
@tab Hash function extension

@item zkr
@tab 1.0
@tab Entropy source extension

@item zks
@tab 1.0
@tab ShangMi algorithm suite extension

@item zksed
@tab 1.0
@tab SM4 block cipher extension

@item zksh
@tab 1.0
@tab SM3 hash function extension

@item zkt
@tab 1.0
@tab Data independent execution latency extension

@item ztso
@tab 1.0
@tab Total store ordering extension

@item zvbb
@tab 1.0
@tab Vector basic bit-manipulation extension

@item zvbc
@tab 1.0
@tab Vector carryless multiplication extension

@item zve32f
@tab 1.0
@tab Vector extensions for embedded processors

@item zve32x
@tab 1.0
@tab Vector extensions for embedded processors

@item zve64d
@tab 1.0
@tab Vector extensions for embedded processors

@item zve64f
@tab 1.0
@tab Vector extensions for embedded processors

@item zve64x
@tab 1.0
@tab Vector extensions for embedded processors

@item zvfbfmin
@tab 1.0
@tab Vector BF16 converts extension

@item zvfbfwma
@tab 1.0
@tab zvfbfwma extension

@item zvfh
@tab 1.0
@tab Vector half-precision floating-point extension

@item zvfhmin
@tab 1.0
@tab Vector minimal half-precision floating-point extension

@item zvkb
@tab 1.0
@tab Vector cryptography bit-manipulation extension

@item zvkg
@tab 1.0
@tab Vector GCM/GMAC extension

@item zvkn
@tab 1.0
@tab Vector NIST Algorithm Suite extension, @samp{zvkn} will expand to

@item zvknc
@tab 1.0
@tab Vector NIST Algorithm Suite with carryless multiply extension, @samp{zvknc}

@item zvkned
@tab 1.0
@tab Vector AES block cipher extension

@item zvkng
@tab 1.0
@tab Vector NIST Algorithm Suite with GCM extension, @samp{zvkng} will expand

@item zvknha
@tab 1.0
@tab Vector SHA-2 secure hash extension

@item zvknhb
@tab 1.0
@tab Vector SHA-2 secure hash extension

@item zvks
@tab 1.0
@tab Vector ShangMi algorithm suite extension, @samp{zvks} will expand

@item zvksc
@tab 1.0
@tab Vector ShangMi algorithm suite with carryless multiplication extension,

@item zvksed
@tab 1.0
@tab Vector SM4 Block Cipher extension

@item zvksg
@tab 1.0
@tab Vector ShangMi algorithm suite with GCM extension, @samp{zvksg} will expand

@item zvksh
@tab 1.0
@tab Vector SM3 Secure Hash extension

@item zvkt
@tab 1.0
@tab Vector data independent execution latency extension

@item zvl1024b
@tab 1.0
@tab Minimum vector length standard extensions

@item zvl128b
@tab 1.0
@tab Minimum vector length standard extensions

@item zvl16384b
@tab 1.0
@tab zvl16384b extension

@item zvl2048b
@tab 1.0
@tab Minimum vector length standard extensions

@item zvl256b
@tab 1.0
@tab Minimum vector length standard extensions

@item zvl32768b
@tab 1.0
@tab zvl32768b extension

@item zvl32b
@tab 1.0
@tab Minimum vector length standard extensions

@item zvl4096b
@tab 1.0
@tab Minimum vector length standard extensions

@item zvl512b
@tab 1.0
@tab Minimum vector length standard extensions

@item zvl64b
@tab 1.0
@tab Minimum vector length standard extensions

@item zvl65536b
@tab 1.0
@tab zvl65536b extension

@item zvl8192b
@tab 1.0
@tab zvl8192b extension

@item zhinx
@tab 1.0
@tab Half-precision floating-point in integer registers extension

@item zhinxmin
@tab 1.0
@tab Minimal half-precision floating-point in integer registers extension

@item sdtrig
@tab 1.0
@tab sdtrig extension

@item sha
@tab 1.0
@tab The augmented hypervisor extension

@item shcounterenw
@tab 1.0
@tab Support writeable enables for any supported counter

@item shgatpa
@tab 1.0
@tab SvNNx4 mode supported for all modes supported by satp

@item shtvala
@tab 1.0
@tab The htval register provides all needed values

@item shvstvala
@tab 1.0
@tab The vstval register provides all needed values

@item shvstvecd
@tab 1.0
@tab The vstvec register supports Direct mode

@item shvsatpa
@tab 1.0
@tab The vsatp register supports all modes supported by satp

@item smaia
@tab 1.0
@tab Advanced interrupt architecture extension

@item smepmp
@tab 1.0
@tab PMP Enhancements for memory access and execution prevention on Machine mode

@item smmpm
@tab 1.0
@tab smmpm extension

@item smnpm
@tab 1.0
@tab smnpm extension

@item smstateen
@tab 1.0
@tab State enable extension

@item ssaia
@tab 1.0
@tab Advanced interrupt architecture extension for supervisor-mode

@item sscofpmf
@tab 1.0
@tab Count overflow & filtering extension

@item ssnpm
@tab 1.0
@tab ssnpm extension

@item sspm
@tab 1.0
@tab sspm extension

@item ssstateen
@tab 1.0
@tab State-enable extension for supervisor-mode

@item sstc
@tab 1.0
@tab Supervisor-mode timer interrupts extension

@item ssstrict
@tab 1.0
@tab ssstrict extension

@item supm
@tab 1.0
@tab supm extension

@item svinval
@tab 1.0
@tab Fine-grained address-translation cache invalidation extension

@item svnapot
@tab 1.0
@tab NAPOT translation contiguity extension

@item svpbmt
@tab 1.0
@tab Page-based memory types extension

@item svvptc
@tab 1.0
@tab svvptc extension

@item svadu
@tab 1.0
@tab Hardware Updating of A/D Bits extension

@item svade
@tab 1.0
@tab Cause exception when hardware updating of A/D bits is disabled

@item xcvalu
@tab 1.0
@tab Core-V miscellaneous ALU extension

@item xcvbi
@tab 1.0
@tab xcvbi extension

@item xcvelw
@tab 1.0
@tab Core-V event load word extension

@item xcvmac
@tab 1.0
@tab Core-V multiply-accumulate extension

@item xcvsimd
@tab 1.0
@tab xcvsimd extension

@item xsfcease
@tab 1.0
@tab xsfcease extension

@item xsfvcp
@tab 1.0
@tab xsfvcp extension

@item xsfvfnrclipxfqf
@tab 1.0
@tab xsfvfnrclipxfqf extension

@item xsfvqmaccdod
@tab 1.0
@tab xsfvqmaccdod extension

@item xsfvqmaccqoq
@tab 1.0
@tab xsfvqmaccqoq extension

@item xtheadba
@tab 1.0
@tab T-head address calculation extension

@item xtheadbb
@tab 1.0
@tab T-head basic bit-manipulation extension

@item xtheadbs
@tab 1.0
@tab T-head single-bit instructions extension

@item xtheadcmo
@tab 1.0
@tab T-head cache management operations extension

@item xtheadcondmov
@tab 1.0
@tab T-head conditional move extension

@item xtheadfmemidx
@tab 1.0
@tab T-head indexed memory operations for floating-point registers extension

@item xtheadfmv
@tab 1.0
@tab T-head double floating-point high-bit data transmission extension

@item xtheadint
@tab 1.0
@tab T-head acceleration interruption extension

@item xtheadmac
@tab 1.0
@tab T-head multiply-accumulate extension

@item xtheadmemidx
@tab 1.0
@tab T-head indexed memory operation extension

@item xtheadmempair
@tab 1.0
@tab T-head two-GPR memory operation extension

@item xtheadsync
@tab 1.0
@tab T-head multi-core synchronization extension

@item xtheadvector
@tab 1.0
@tab xtheadvector extension

@item xventanacondops
@tab 1.0
@tab Ventana integer conditional operations extension

@end multitable