@@ -185,7 +185,8 @@ let Features = "sse", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in
185185 def cvttss2si : X86Builtin<" int(_Vector<4, float>)" >;
186186}
187187
188- let Features = " sse" , Attributes = [NoThrow, RequiredVectorWidth<128 >] in {
188+ let Features = " sse" ,
189+ Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<128 >] in {
189190 def movmskps : X86Builtin<" int(_Vector<4, float>)" >;
190191}
191192
@@ -211,11 +212,6 @@ let Features = "sse2", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
211212 def maskmovdqu : X86Builtin<" void(_Vector<16, char>, _Vector<16, char>, char *)" >;
212213}
213214
214- let Features = " sse2" , Attributes = [NoThrow, Const, RequiredVectorWidth<128 >] in {
215- def movmskpd : X86Builtin<" int(_Vector<2, double>)" >;
216- def pmovmskb128 : X86Builtin<" int(_Vector<16, char>)" >;
217- }
218-
219215let Features = " sse2" , Attributes = [NoThrow] in {
220216 def movnti : X86Builtin<" void(int *, int)" >;
221217}
@@ -224,6 +220,8 @@ let Features = "sse2", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWi
224220 def pshuflw : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Constant int)" >;
225221 def pshufd : X86Builtin<" _Vector<4, int>(_Vector<4, int>, _Constant int)" >;
226222 def pshufhw : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Constant int)" >;
223+ def movmskpd : X86Builtin<" int(_Vector<2, double>)" >;
224+ def pmovmskb128 : X86Builtin<" int(_Vector<16, char>)" >;
227225}
228226
229227let Features = " sse2" , Attributes = [NoThrow, Const, RequiredVectorWidth<128 >] in {
@@ -563,11 +561,8 @@ let Features = "avx",
563561 def vtestnzcps256 : X86Builtin<" int(_Vector<8, float>, _Vector<8, float>)" >;
564562 def ptestz256 : X86Builtin<" int(_Vector<4, long long int>, _Vector<4, long long int>)" >;
565563 def ptestc256 : X86Builtin<" int(_Vector<4, long long int>, _Vector<4, long long int>)" >;
566- def ptestnzc256 : X86Builtin<" int(_Vector<4, long long int>, _Vector<4, long long int>)" >;
567- }
568-
569- let Features = " avx" ,
570- Attributes = [NoThrow, Const, RequiredVectorWidth<256 >] in {
564+ def ptestnzc256
565+ : X86Builtin<" int(_Vector<4, long long int>, _Vector<4, long long int>)" >;
571566 def movmskpd256 : X86Builtin<" int(_Vector<4, double>)" >;
572567 def movmskps256 : X86Builtin<" int(_Vector<8, float>)" >;
573568}
@@ -606,9 +601,8 @@ let Features = "avx", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWid
606601
607602let Features = " avx2" , Attributes = [NoThrow, Const, RequiredVectorWidth<256 >] in {
608603 def mpsadbw256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>, _Constant char)" >;
609- def palignr256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>, _Constant int)" >;
610-
611- def pmovmskb256 : X86Builtin<" int(_Vector<32, char>)" >;
604+ def palignr256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, "
605+ " _Vector<32, char>, _Constant int)" >;
612606 def psadbw256 : X86Builtin<" _Vector<4, long long int>(_Vector<32, char>, _Vector<32, char>)" >;
613607 def psignb256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>)" >;
614608 def psignw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>)" >;
@@ -633,6 +627,7 @@ let Features = "avx2", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] i
633627
634628
635629let Features = " avx2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<256 >] in {
630+ def pmovmskb256 : X86Builtin<" int(_Vector<32, char>)" >;
636631 def pavgb256 : X86Builtin<" _Vector<32, unsigned char>(_Vector<32, unsigned char>, _Vector<32, unsigned char>)" >;
637632 def pavgw256 : X86Builtin<" _Vector<16, unsigned short>(_Vector<16, unsigned short>, _Vector<16, unsigned short>)" >;
638633
0 commit comments