@@ -125,14 +125,14 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<128>] in {
125125
126126 let Features = " ssse3" in {
127127 def pmulhrsw128 : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Vector<8, short>)" >;
128- def pshufb128 : X86Builtin<" _Vector<16, char>(_Vector<16, char>, _Vector<16, char>)" >;
129128 def psignb128 : X86Builtin<" _Vector<16, char>(_Vector<16, char>, _Vector<16, char>)" >;
130129 def psignw128 : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Vector<8, short>)" >;
131130 def psignd128 : X86Builtin<" _Vector<4, int>(_Vector<4, int>, _Vector<4, int>)" >;
132131 }
133132
134133 let Features = " ssse3" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<128 >] in {
135134 def pmaddubsw128 : X86Builtin<" _Vector<8, short>(_Vector<16, char>, _Vector<16, char>)" >;
135+ def pshufb128 : X86Builtin<" _Vector<16, char>(_Vector<16, char>, _Vector<16, char>)" >;
136136 }
137137}
138138
@@ -610,7 +610,6 @@ let Features = "avx2", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] i
610610 def pmovmskb256 : X86Builtin<" int(_Vector<32, char>)" >;
611611 def pmulhrsw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>)" >;
612612 def psadbw256 : X86Builtin<" _Vector<4, long long int>(_Vector<32, char>, _Vector<32, char>)" >;
613- def pshufb256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>)" >;
614613 def psignb256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>)" >;
615614 def psignw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>)" >;
616615 def psignd256 : X86Builtin<" _Vector<8, int>(_Vector<8, int>, _Vector<8, int>)" >;
@@ -649,6 +648,8 @@ let Features = "avx2", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWi
649648 def pmuldq256 : X86Builtin<" _Vector<4, long long int>(_Vector<8, int>, _Vector<8, int>)" >;
650649 def pmuludq256 : X86Builtin<" _Vector<4, long long int>(_Vector<8, int>, _Vector<8, int>)" >;
651650
651+ def pshufb256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>)" >;
652+
652653 def psllwi256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, int)" >;
653654 def pslldi256 : X86Builtin<" _Vector<8, int>(_Vector<8, int>, int)" >;
654655 def psllqi256 : X86Builtin<" _Vector<4, long long int>(_Vector<4, long long int>, int)" >;
@@ -1347,14 +1348,15 @@ let Features = "avx512f", Attributes = [NoThrow, Const, RequiredVectorWidth<512>
13471348
13481349let Features = " avx512bw" , Attributes = [NoThrow, Const, RequiredVectorWidth<512 >] in {
13491350 def ucmpw512_mask : X86Builtin<" unsigned int(_Vector<32, short>, _Vector<32, short>, _Constant int, unsigned int)" >;
1350- def pshufb512 : X86Builtin<" _Vector<64, char>(_Vector<64, char>, _Vector<64, char>)" >;
13511351}
13521352
13531353let Features = " avx512bw" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<512 >] in {
13541354 def packsswb512 : X86Builtin<" _Vector<64, char>(_Vector<32, short>, _Vector<32, short>)" >;
13551355 def packssdw512 : X86Builtin<" _Vector<32, short>(_Vector<16, int>, _Vector<16, int>)" >;
13561356 def packuswb512 : X86Builtin<" _Vector<64, char>(_Vector<32, short>, _Vector<32, short>)" >;
13571357 def packusdw512 : X86Builtin<" _Vector<32, short>(_Vector<16, int>, _Vector<16, int>)" >;
1358+
1359+ def pshufb512 : X86Builtin<" _Vector<64, char>(_Vector<64, char>, _Vector<64, char>)" >;
13581360}
13591361
13601362let Features = " avx512cd,avx512vl" , Attributes = [NoThrow, Const, RequiredVectorWidth<128 >] in {
0 commit comments