@@ -93,8 +93,6 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<128>] in {
9393 }
9494
9595 let Features = " sse2" in {
96- def pavgb128 : X86Builtin<" _Vector<16, char>(_Vector<16, char>, _Vector<16, char>)" >;
97- def pavgw128 : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Vector<8, short>)" >;
9896 def packsswb128 : X86Builtin<" _Vector<16, char>(_Vector<8, short>, _Vector<8, short>)" >;
9997 def packssdw128 : X86Builtin<" _Vector<8, short>(_Vector<4, int>, _Vector<4, int>)" >;
10098 def packuswb128 : X86Builtin<" _Vector<16, char>(_Vector<8, short>, _Vector<8, short>)" >;
@@ -106,6 +104,8 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<128>] in {
106104 }
107105
108106 let Features = " sse2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<128 >] in {
107+ def pavgb128 : X86Builtin<" _Vector<16, unsigned char>(_Vector<16, unsigned char>, _Vector<16, unsigned char>)" >;
108+ def pavgw128 : X86Builtin<" _Vector<8, unsigned short>(_Vector<8, unsigned short>, _Vector<8, unsigned short>)" >;
109109 def pmulhw128 : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Vector<8, short>)" >;
110110 def pmulhuw128 : X86Builtin<" _Vector<8, unsigned short>(_Vector<8, unsigned short>, _Vector<8, unsigned short>)" >;
111111 }
@@ -575,8 +575,6 @@ let Features = "avx2", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] i
575575 def packuswb256 : X86Builtin<" _Vector<32, char>(_Vector<16, short>, _Vector<16, short>)" >;
576576 def packusdw256 : X86Builtin<" _Vector<16, short>(_Vector<8, int>, _Vector<8, int>)" >;
577577 def palignr256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>, _Constant int)" >;
578- def pavgb256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>)" >;
579- def pavgw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>)" >;
580578 def pblendw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>, _Constant int)" >;
581579 def phaddw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>)" >;
582580 def phaddd256 : X86Builtin<" _Vector<8, int>(_Vector<8, int>, _Vector<8, int>)" >;
@@ -618,6 +616,9 @@ let Features = "avx2", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] i
618616}
619617
620618let Features = " avx2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<256 >] in {
619+ def pavgb256 : X86Builtin<" _Vector<32, unsigned char>(_Vector<32, unsigned char>, _Vector<32, unsigned char>)" >;
620+ def pavgw256 : X86Builtin<" _Vector<16, unsigned short>(_Vector<16, unsigned short>, _Vector<16, unsigned short>)" >;
621+
621622 def pblendvb256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>, _Vector<32, char>)" >;
622623
623624 def pmuldq256 : X86Builtin<" _Vector<4, long long int>(_Vector<8, int>, _Vector<8, int>)" >;
@@ -1307,8 +1308,6 @@ let Features = "avx512bw", Attributes = [NoThrow, Const, RequiredVectorWidth<512
13071308 def packsswb512 : X86Builtin<" _Vector<64, char>(_Vector<32, short>, _Vector<32, short>)" >;
13081309 def packusdw512 : X86Builtin<" _Vector<32, short>(_Vector<16, int>, _Vector<16, int>)" >;
13091310 def packuswb512 : X86Builtin<" _Vector<64, char>(_Vector<32, short>, _Vector<32, short>)" >;
1310- def pavgb512 : X86Builtin<" _Vector<64, char>(_Vector<64, char>, _Vector<64, char>)" >;
1311- def pavgw512 : X86Builtin<" _Vector<32, short>(_Vector<32, short>, _Vector<32, short>)" >;
13121311 def pshufb512 : X86Builtin<" _Vector<64, char>(_Vector<64, char>, _Vector<64, char>)" >;
13131312}
13141313
@@ -1350,6 +1349,8 @@ let Features = "avx512bw", Attributes = [NoThrow, Const, RequiredVectorWidth<512
13501349}
13511350
13521351let Features = " avx512bw" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<512 >] in {
1352+ def pavgb512 : X86Builtin<" _Vector<64, unsigned char>(_Vector<64, unsigned char>, _Vector<64, unsigned char>)" >;
1353+ def pavgw512 : X86Builtin<" _Vector<32, unsigned short>(_Vector<32, unsigned short>, _Vector<32, unsigned short>)" >;
13531354 def pmulhuw512 : X86Builtin<" _Vector<32, unsigned short>(_Vector<32, unsigned short>, _Vector<32, unsigned short>)" >;
13541355 def pmulhw512 : X86Builtin<" _Vector<32, short>(_Vector<32, short>, _Vector<32, short>)" >;
13551356}
0 commit comments