@@ -497,6 +497,9 @@ let Features = "avx", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWid
497497 def blendps256 : X86Builtin<" _Vector<8, float>(_Vector<8, float>, _Vector<8, float>, _Constant int)" >;
498498 def blendvpd256 : X86Builtin<" _Vector<4, double>(_Vector<4, double>, _Vector<4, double>, _Vector<4, double>)" >;
499499 def blendvps256 : X86Builtin<" _Vector<8, float>(_Vector<8, float>, _Vector<8, float>, _Vector<8, float>)" >;
500+ def vinsertf128_pd256 : X86Builtin<" _Vector<4, double>(_Vector<4, double>, _Vector<2, double>, _Constant int)" >;
501+ def vinsertf128_ps256 : X86Builtin<" _Vector<8, float>(_Vector<8, float>, _Vector<4, float>, _Constant int)" >;
502+ def vinsertf128_si256 : X86Builtin<" _Vector<8, int>(_Vector<8, int>, _Vector<4, int>, _Constant int)" >;
500503}
501504
502505let Features = " avx" , Attributes = [NoThrow, Const, RequiredVectorWidth<256 >] in {
@@ -510,11 +513,6 @@ let Features = "avx", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in
510513 def roundps256 : X86Builtin<" _Vector<8, float>(_Vector<8, float>, _Constant int)" >;
511514}
512515
513- let Features = " avx" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<256 >] in {
514- def vinsertf128_pd256 : X86Builtin<" _Vector<4, double>(_Vector<4, double>, _Vector<2, double>, _Constant int)" >;
515- def vinsertf128_ps256 : X86Builtin<" _Vector<8, float>(_Vector<8, float>, _Vector<4, float>, _Constant int)" >;
516- def vinsertf128_si256 : X86Builtin<" _Vector<8, int>(_Vector<8, int>, _Vector<4, int>, _Constant int)" >;
517- }
518516
519517let Features = " avx" , Attributes = [NoThrow, Const, RequiredVectorWidth<128 >] in {
520518 def vtestzpd : X86Builtin<" int(_Vector<2, double>, _Vector<2, double>)" >;
@@ -614,9 +612,6 @@ let Features = "avx2", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] i
614612 def extract128i256 : X86Builtin<" _Vector<2, long long int>(_Vector<4, long long int>, _Constant int)" >;
615613}
616614
617- let Features = " avx2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<256 >] in {
618- def insert128i256 : X86Builtin<" _Vector<4, long long int>(_Vector<4, long long int>, _Vector<2, long long int>, _Constant int)" >;
619- }
620615
621616let Features = " avx2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<256 >] in {
622617 def pavgb256 : X86Builtin<" _Vector<32, unsigned char>(_Vector<32, unsigned char>, _Vector<32, unsigned char>)" >;
@@ -650,6 +645,8 @@ let Features = "avx2", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWi
650645 def psrlv8si : X86Builtin<" _Vector<8, int>(_Vector<8, int>, _Vector<8, int>)" >;
651646 def psllv4di : X86Builtin<" _Vector<4, long long int>(_Vector<4, long long int>, _Vector<4, long long int>)" >;
652647 def psrlv4di : X86Builtin<" _Vector<4, long long int>(_Vector<4, long long int>, _Vector<4, long long int>)" >;
648+
649+ def insert128i256 : X86Builtin<" _Vector<4, long long int>(_Vector<4, long long int>, _Vector<2, long long int>, _Constant int)" >;
653650}
654651
655652let Features = " avx2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<128 >] in {
0 commit comments