[PATCH] D153993: [Headers][doc] Add load/store/cmp/cvt intrinsic descriptions to avx2intrin.h
Phoebe Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 28 23:11:29 PDT 2023
pengfei added inline comments.
================
Comment at: clang/lib/Headers/avx2intrin.h:1324
+/// k := i*16
+/// result[k+15:k] := SignExtend(__V[j+7:7])
+/// ENDFOR
----------------
j
================
Comment at: clang/lib/Headers/avx2intrin.h:1352
+/// k := i*32
+/// result[k+31:k] := SignExtend(__V[j+7:7])
+/// ENDFOR
----------------
j
================
Comment at: clang/lib/Headers/avx2intrin.h:1407
+/// k := i*32
+/// result[k+31:k] := SignExtend(__V[j+15:7])
+/// ENDFOR
----------------
j
================
Comment at: clang/lib/Headers/avx2intrin.h:1483
+/// k := i*16
+/// result[k+15:k] := ZeroExtend(__V[j+7:7])
+/// ENDFOR
----------------
j
================
Comment at: clang/lib/Headers/avx2intrin.h:1509
+/// k := i*32
+/// result[k+31:k] := ZeroExtend(__V[j+7:7])
+/// ENDFOR
----------------
j
================
Comment at: clang/lib/Headers/avx2intrin.h:1560
+/// k := i*32
+/// result[k+31:k] := ZeroExtend(__V[j+15:7])
+/// ENDFOR
----------------
j
================
Comment at: clang/lib/Headers/avx2intrin.h:3474
+/// IF __M[j+31] == 1
+/// result[j+31:j] := Load32(__X+(i*4))
+/// ELSE
----------------
A more intrinsic guide format is `MEM[__X+j:j]`
================
Comment at: clang/lib/Headers/avx2intrin.h:3506
+/// IF __M[j+63] == 1
+/// result[j+63:j] := Load64(__X+(i*8))
+/// ELSE
----------------
ditto.
================
Comment at: clang/lib/Headers/avx2intrin.h:3538
+/// IF __M[j+31] == 1
+/// result[j+31:j] := Load32(__X+(i*4))
+/// ELSE
----------------
ditto.
================
Comment at: clang/lib/Headers/avx2intrin.h:3570
+/// IF __M[j+63] == 1
+/// result[j+63:j] := Load64(__X+(i*8))
+/// ELSE
----------------
ditto.
================
Comment at: clang/lib/Headers/avx2intrin.h:3602
+/// IF __M[j+31] == 1
+/// Store32(__X+(i*4), __Y[j+31:j])
+/// FI
----------------
MEM[j+31:j] := __Y[j+31:j]
================
Comment at: clang/lib/Headers/avx2intrin.h:3632
+/// IF __M[j+63] == 1
+/// Store64(__X+(i*8), __Y[j+63:j])
+/// FI
----------------
ditto.
================
Comment at: clang/lib/Headers/avx2intrin.h:3662
+/// IF __M[j+31] == 1
+/// Store32(__X+(i*4), __Y[j+31:j])
+/// FI
----------------
ditto.
================
Comment at: clang/lib/Headers/avx2intrin.h:3692
+/// IF __M[j+63] == 1
+/// Store64(__X+(i*8), __Y[j+63:j])
+/// FI
----------------
ditto.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153993/new/
https://reviews.llvm.org/D153993
More information about the cfe-commits
mailing list