llvm.org GIT mirror llvm / 23da110
[AMDGPU][MC][DOC] A fix for build failure in r349370 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349375 91177308-0d34-0410-b5e6-96231b3b80d8 Dmitry Preobrazhensky 8 months ago
22 changed file(s) with 61 addition(s) and 61 deletion(s). Raw diff Collapse all Expand all
2222
2323 Examples:
2424
25 .. code-block:: nasm
25 .. parsed-literal::
2626
2727 v_interp_p1_f32 v1, v0, attr0.x
2828 v_interp_p1_f32 v1, v0, attr32.w
5050
5151 Examples:
5252
53 .. code-block:: nasm
53 .. parsed-literal::
5454
5555 s_getreg_b32 s2, 0x6
5656 s_getreg_b32 s2, hwreg(15)
1919
2020 Examples:
2121
22 .. code-block:: nasm
22 .. parsed-literal::
2323
2424 offset = 30
2525 s_branch loop_end
5959
6060 Examples:
6161
62 .. code-block:: nasm
62 .. parsed-literal::
6363
6464 s_sendmsg 0x12
6565 s_sendmsg sendmsg(MSG_INTERRUPT)
1818
1919 An example:
2020
21 .. code-block:: nasm
21 .. parsed-literal::
2222
2323 exp mrtz v3, v3, off, off compr
2424
4343
4444 Examples:
4545
46 .. code-block:: nasm
46 .. parsed-literal::
4747
4848 s_waitcnt 0
4949 s_waitcnt vmcnt(1)
2222
2323 Examples:
2424
25 .. code-block:: nasm
25 .. parsed-literal::
2626
2727 v_interp_p1_f32 v1, v0, attr0.x
2828 v_interp_p1_f32 v1, v0, attr32.w
5050
5151 Examples:
5252
53 .. code-block:: nasm
53 .. parsed-literal::
5454
5555 s_getreg_b32 s2, 0x6
5656 s_getreg_b32 s2, hwreg(15)
1919
2020 Examples:
2121
22 .. code-block:: nasm
22 .. parsed-literal::
2323
2424 offset = 30
2525 s_branch loop_end
5959
6060 Examples:
6161
62 .. code-block:: nasm
62 .. parsed-literal::
6363
6464 s_sendmsg 0x12
6565 s_sendmsg sendmsg(MSG_INTERRUPT)
1818
1919 An example:
2020
21 .. code-block:: nasm
21 .. parsed-literal::
2222
2323 exp mrtz v3, v3, off, off compr
2424
4343
4444 Examples:
4545
46 .. code-block:: nasm
46 .. parsed-literal::
4747
4848 s_waitcnt 0
4949 s_waitcnt vmcnt(1)
2222
2323 Examples:
2424
25 .. code-block:: nasm
25 .. parsed-literal::
2626
2727 v_interp_p1_f32 v1, v0, attr0.x
2828 v_interp_p1_f32 v1, v0, attr32.w
5151
5252 Examples:
5353
54 .. code-block:: nasm
54 .. parsed-literal::
5555
5656 s_getreg_b32 s2, 0x6
5757 s_getreg_b32 s2, hwreg(15)
1919
2020 Examples:
2121
22 .. code-block:: nasm
22 .. parsed-literal::
2323
2424 offset = 30
2525 s_branch loop_end
5959
6060 Examples:
6161
62 .. code-block:: nasm
62 .. parsed-literal::
6363
6464 s_sendmsg 0x12
6565 s_sendmsg sendmsg(MSG_INTERRUPT)
1818
1919 An example:
2020
21 .. code-block:: nasm
21 .. parsed-literal::
2222
2323 exp mrtz v3, v3, off, off compr
2424
4444
4545 Examples:
4646
47 .. code-block:: nasm
47 .. parsed-literal::
4848
4949 s_waitcnt 0
5050 s_waitcnt vmcnt(1)
8080
8181 Examples:
8282
83 .. code-block:: nasm
83 .. parsed-literal::
8484
8585 src1:m // src1 operand may be used with operand modifiers
8686 vdata:dst // vdata operand may be used as both source and destination
8989
9090 Examples of instructions with different types of source and destination operands:
9191
92 .. code-block:: nasm
92 .. parsed-literal::
9393
9494 s_bcnt0_i32_b64
9595 v_cvt_f32_u32
9696
9797 Examples of instructions with one data type:
9898
99 .. code-block:: nasm
99 .. parsed-literal::
100100
101101 v_max3_f32
102102 v_max3_i16
103103
104104 Examples of instructions which operate with packed data:
105105
106 .. code-block:: nasm
106 .. parsed-literal::
107107
108108 v_pk_add_u16
109109 v_pk_add_i16
111111
112112 Examples of typeless instructions which operate on b128 data:
113113
114 .. code-block:: nasm
114 .. parsed-literal::
115115
116116 buffer_store_dwordx4
117117 flat_load_dwordx4
4242
4343 Examples:
4444
45 .. code-block:: nasm
45 .. parsed-literal::
4646
4747 offset:255
4848 offset:0xff
6565
6666 Examples:
6767
68 .. code-block:: nasm
68 .. parsed-literal::
6969
7070 offset:65535
7171 offset:0xffff
132132
133133 Examples:
134134
135 .. code-block:: nasm
135 .. parsed-literal::
136136
137137 offset:255
138138 offset:0xffff
220220
221221 Examples:
222222
223 .. code-block:: nasm
223 .. parsed-literal::
224224
225225 offset:4095
226226 offset:0xff
243243
244244 Examples:
245245
246 .. code-block:: nasm
246 .. parsed-literal::
247247
248248 offset:-4000
249249 offset:0x10
308308
309309 Examples:
310310
311 .. code-block:: nasm
311 .. parsed-literal::
312312
313313 dmask:0xf
314314 dmask:0b1111
558558
559559 Examples:
560560
561 .. code-block:: nasm
561 .. parsed-literal::
562562
563563 offset:0
564564 offset:0x10
673673
674674 Examples:
675675
676 .. code-block:: nasm
676 .. parsed-literal::
677677
678678 quad_perm:[0, 1, 2, 3]
679679 row_shl:3
699699
700700 Examples:
701701
702 .. code-block:: nasm
702 .. parsed-literal::
703703
704704 row_mask:0xf
705705 row_mask:0b1010
726726
727727 Examples:
728728
729 .. code-block:: nasm
729 .. parsed-literal::
730730
731731 bank_mask:0x3
732732 bank_mask:0b0011
878878
879879 Examples:
880880
881 .. code-block:: nasm
881 .. parsed-literal::
882882
883883 sext(v4)
884884 sext(v255)
914914
915915 Examples:
916916
917 .. code-block:: nasm
917 .. parsed-literal::
918918
919919 op_sel:[0,0]
920920 op_sel:[0,1]
993993
994994 Examples:
995995
996 .. code-block:: nasm
996 .. parsed-literal::
997997
998998 abs(v36)
999 |v36|
999 \|v36|
10001000
10011001 .. _amdgpu_synid_neg:
10021002
10151015
10161016 Examples:
10171017
1018 .. code-block:: nasm
1018 .. parsed-literal::
10191019
10201020 neg(v[0])
10211021 -v4
10541054
10551055 Examples:
10561056
1057 .. code-block:: nasm
1057 .. parsed-literal::
10581058
10591059 op_sel:[0,0]
10601060 op_sel:[0,1,0]
10831083
10841084 Examples:
10851085
1086 .. code-block:: nasm
1086 .. parsed-literal::
10871087
10881088 op_sel_hi:[0,0]
10891089 op_sel_hi:[0,0,1]
11171117
11181118 Examples:
11191119
1120 .. code-block:: nasm
1120 .. parsed-literal::
11211121
11221122 neg_lo:[0]
11231123 neg_lo:[0,1]
11511151
11521152 Examples:
11531153
1154 .. code-block:: nasm
1154 .. parsed-literal::
11551155
11561156 neg_hi:[1,0]
11571157 neg_hi:[0,1,1]
11991199
12001200 Examples:
12011201
1202 .. code-block:: nasm
1202 .. parsed-literal::
12031203
12041204 op_sel:[0,1]
12051205
12271227
12281228 Examples:
12291229
1230 .. code-block:: nasm
1230 .. parsed-literal::
12311231
12321232 op_sel_hi:[1,1,1]
12331233
6262
6363 Examples:
6464
65 .. code-block:: nasm
65 .. parsed-literal::
6666
6767 v255
6868 v[0]
126126
127127 Examples:
128128
129 .. code-block:: nasm
129 .. parsed-literal::
130130
131131 s0
132132 s[0]
140140
141141 Examples of *scalar* registers with an invalid alignment:
142142
143 .. code-block:: nasm
143 .. parsed-literal::
144144
145145 s[1:2]
146146 s[2:5]
209209
210210 Examples:
211211
212 .. code-block:: nasm
212 .. parsed-literal::
213213
214214 ttmp0
215215 ttmp[0]
223223
224224 Examples of *ttmp* registers with an invalid alignment:
225225
226 .. code-block:: nasm
226 .. parsed-literal::
227227
228228 ttmp[1:2]
229229 ttmp[2:5]
644644
645645 Examples:
646646
647 .. code-block:: nasm
647 .. parsed-literal::
648648
649649 -1234
650650 0b1010
670670
671671 Examples:
672672
673 .. code-block:: nasm
673 .. parsed-literal::
674674
675675 -1.234
676676 234e2
699699
700700 Examples:
701701
702 .. code-block:: nasm
702 .. parsed-literal::
703703
704704 x = -1
705705 y = x + 10
718718
719719 Examples:
720720
721 .. code-block:: nasm
721 .. parsed-literal::
722722
723723 y = x + 10 // x is not yet defined. Undefined symbols are assumed to be PC-relative.
724724 z = .
735735
736736 Examples:
737737
738 .. code-block:: nasm
738 .. parsed-literal::
739739
740740 x = 0.1 // x is assigned an integer 4591870180066957722 which is a binary representation of 0.1.
741741 y = x + x // y is a sum of two integer values; it is not equal to 0.2!
896896
897897 Examples:
898898
899 .. code-block:: nasm
899 .. parsed-literal::
900900
901901 // GFX9
902902
919919
920920 Examples:
921921
922 .. code-block:: nasm
922 .. parsed-literal::
923923
924924 // GFX9
925925
968968
969969 Examples of valid literals:
970970
971 .. code-block:: nasm
971 .. parsed-literal::
972972
973973 // GFX9
974974
982982
983983 Examples of invalid literals:
984984
985 .. code-block:: nasm
985 .. parsed-literal::
986986
987987 // GFX9
988988
10201020
10211021 Examples of valid literals:
10221022
1023 .. code-block:: nasm
1023 .. parsed-literal::
10241024
10251025 // GFX9
10261026
10321032
10331033 Examples of invalid literals:
10341034
1035 .. code-block:: nasm
1035 .. parsed-literal::
10361036
10371037 // GFX9
10381038
10511051
10521052 Examples:
10531053
1054 .. code-block:: nasm
1054 .. parsed-literal::
10551055
10561056 // GFX9
10571057