Commit 475e0ee
authored
[msan][NFCI] Generalize handleAVX512VectorGenericMaskedFP() operands (llvm#159966)
This generalizes handleAVX512VectorGenericMaskedFP() (introduced in
llvm#158397), to potentially handle intrinsics that have A/WriteThru/Mask in
an operand order that is different to AVX512/AVX10 rcp and rsqrt. Any
operands other than A and WriteThru must be fully initialized.
For example, the generalized handler could be applied in follow-up work
to many of the AVX512 rndscale intrinsics:
```
<32 x half> @llvm.x86.avx512fp16.mask.rndscale.ph.512(<32 x half>, i32, <32 x half>, i32, i32)
<16 x float> @llvm.x86.avx512.mask.rndscale.ps.512(<16 x float>, i32, <16 x float>, i16, i32)
<8 x double> @llvm.x86.avx512.mask.rndscale.pd.512(<8 x double>, i32, <8 x double>, i8, i32)
A Imm WriteThru Mask Rounding
<8 x float> @llvm.x86.avx512.mask.rndscale.ps.256(<8 x float>, i32, <8 x float>, i8)
<4 x float> @llvm.x86.avx512.mask.rndscale.ps.128(<4 x float>, i32, <4 x float>, i8)
<4 x double> @llvm.x86.avx512.mask.rndscale.pd.256(<4 x double>, i32, <4 x double>, i8)
<2 x double> @llvm.x86.avx512.mask.rndscale.pd.128(<2 x double>, i32, <2 x double>, i8)
A Imm WriteThru Mask
```1 parent 370db9c commit 475e0ee
1 file changed
+38
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4926 | 4926 | | |
4927 | 4927 | | |
4928 | 4928 | | |
| 4929 | + | |
| 4930 | + | |
| 4931 | + | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
4929 | 4936 | | |
4930 | 4937 | | |
4931 | | - | |
| 4938 | + | |
| 4939 | + | |
| 4940 | + | |
4932 | 4941 | | |
4933 | 4942 | | |
4934 | | - | |
4935 | | - | |
4936 | | - | |
4937 | | - | |
| 4943 | + | |
| 4944 | + | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
4938 | 4954 | | |
4939 | 4955 | | |
4940 | | - | |
| 4956 | + | |
4941 | 4957 | | |
4942 | 4958 | | |
4943 | 4959 | | |
4944 | 4960 | | |
4945 | | - | |
| 4961 | + | |
4946 | 4962 | | |
4947 | 4963 | | |
4948 | | - | |
4949 | | - | |
4950 | | - | |
4951 | | - | |
| 4964 | + | |
| 4965 | + | |
| 4966 | + | |
| 4967 | + | |
| 4968 | + | |
| 4969 | + | |
| 4970 | + | |
| 4971 | + | |
4952 | 4972 | | |
4953 | 4973 | | |
4954 | 4974 | | |
4955 | 4975 | | |
4956 | 4976 | | |
4957 | 4977 | | |
4958 | | - | |
| 4978 | + | |
4959 | 4979 | | |
4960 | 4980 | | |
4961 | 4981 | | |
| |||
4966 | 4986 | | |
4967 | 4987 | | |
4968 | 4988 | | |
4969 | | - | |
| 4989 | + | |
4970 | 4990 | | |
4971 | | - | |
| 4991 | + | |
4972 | 4992 | | |
4973 | 4993 | | |
4974 | 4994 | | |
| |||
6202 | 6222 | | |
6203 | 6223 | | |
6204 | 6224 | | |
6205 | | - | |
| 6225 | + | |
| 6226 | + | |
6206 | 6227 | | |
6207 | 6228 | | |
6208 | 6229 | | |
| |||
6253 | 6274 | | |
6254 | 6275 | | |
6255 | 6276 | | |
6256 | | - | |
| 6277 | + | |
| 6278 | + | |
6257 | 6279 | | |
6258 | 6280 | | |
6259 | 6281 | | |
| |||
0 commit comments