@@ -93,9 +93,6 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<128>] in {
93
93
}
94
94
95
95
let Features = " sse2" in {
96
- def packsswb128 : X86Builtin<" _Vector<16, char>(_Vector<8, short>, _Vector<8, short>)" >;
97
- def packssdw128 : X86Builtin<" _Vector<8, short>(_Vector<4, int>, _Vector<4, int>)" >;
98
- def packuswb128 : X86Builtin<" _Vector<16, char>(_Vector<8, short>, _Vector<8, short>)" >;
99
96
def vec_ext_v2di : X86Builtin<" long long int(_Vector<2, long long int>, _Constant int)" >;
100
97
def vec_ext_v4si : X86Builtin<" int(_Vector<4, int>, _Constant int)" >;
101
98
def vec_ext_v4sf : X86Builtin<" float(_Vector<4, float>, _Constant int)" >;
@@ -108,6 +105,9 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<128>] in {
108
105
def pavgw128 : X86Builtin<" _Vector<8, unsigned short>(_Vector<8, unsigned short>, _Vector<8, unsigned short>)" >;
109
106
def pmulhw128 : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Vector<8, short>)" >;
110
107
def pmulhuw128 : X86Builtin<" _Vector<8, unsigned short>(_Vector<8, unsigned short>, _Vector<8, unsigned short>)" >;
108
+ def packsswb128 : X86Builtin<" _Vector<16, char>(_Vector<8, short>, _Vector<8, short>)" >;
109
+ def packssdw128 : X86Builtin<" _Vector<8, short>(_Vector<4, int>, _Vector<4, int>)" >;
110
+ def packuswb128 : X86Builtin<" _Vector<16, char>(_Vector<8, short>, _Vector<8, short>)" >;
111
111
}
112
112
113
113
let Features = " sse3" in {
@@ -312,7 +312,6 @@ let Features = "ssse3", Attributes = [NoThrow, Const, RequiredVectorWidth<128>]
312
312
313
313
let Features = " sse4.1" , Attributes = [NoThrow, Const, RequiredVectorWidth<128 >] in {
314
314
def insertps128 : X86Builtin<" _Vector<4, float>(_Vector<4, float>, _Vector<4, float>, _Constant char)" >;
315
- def packusdw128 : X86Builtin<" _Vector<8, short>(_Vector<4, int>, _Vector<4, int>)" >;
316
315
def roundps : X86Builtin<" _Vector<4, float>(_Vector<4, float>, _Constant int)" >;
317
316
def roundss : X86Builtin<" _Vector<4, float>(_Vector<4, float>, _Vector<4, float>, _Constant int)" >;
318
317
def roundsd : X86Builtin<" _Vector<2, double>(_Vector<2, double>, _Vector<2, double>, _Constant int)" >;
@@ -338,6 +337,7 @@ let Features = "sse4.1", Attributes = [NoThrow, Const, Constexpr, RequiredVector
338
337
def pblendvb128 : X86Builtin<" _Vector<16, char>(_Vector<16, char>, _Vector<16, char>, _Vector<16, char>)" >;
339
338
340
339
def pmuldq128 : X86Builtin<" _Vector<2, long long int>(_Vector<4, int>, _Vector<4, int>)" >;
340
+ def packusdw128 : X86Builtin<" _Vector<8, short>(_Vector<4, int>, _Vector<4, int>)" >;
341
341
}
342
342
343
343
let Features = " sse4.2" , Attributes = [NoThrow, Const, RequiredVectorWidth<128 >] in {
@@ -571,10 +571,6 @@ let Features = "avx", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in
571
571
572
572
let Features = " avx2" , Attributes = [NoThrow, Const, RequiredVectorWidth<256 >] in {
573
573
def mpsadbw256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>, _Constant char)" >;
574
- def packsswb256 : X86Builtin<" _Vector<32, char>(_Vector<16, short>, _Vector<16, short>)" >;
575
- def packssdw256 : X86Builtin<" _Vector<16, short>(_Vector<8, int>, _Vector<8, int>)" >;
576
- def packuswb256 : X86Builtin<" _Vector<32, char>(_Vector<16, short>, _Vector<16, short>)" >;
577
- def packusdw256 : X86Builtin<" _Vector<16, short>(_Vector<8, int>, _Vector<8, int>)" >;
578
574
def palignr256 : X86Builtin<" _Vector<32, char>(_Vector<32, char>, _Vector<32, char>, _Constant int)" >;
579
575
def phaddw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>)" >;
580
576
def phaddd256 : X86Builtin<" _Vector<8, int>(_Vector<8, int>, _Vector<8, int>)" >;
@@ -647,6 +643,10 @@ let Features = "avx2", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWi
647
643
def psrlv4di : X86Builtin<" _Vector<4, long long int>(_Vector<4, long long int>, _Vector<4, long long int>)" >;
648
644
649
645
def insert128i256 : X86Builtin<" _Vector<4, long long int>(_Vector<4, long long int>, _Vector<2, long long int>, _Constant int)" >;
646
+ def packusdw256 : X86Builtin<" _Vector<16, short>(_Vector<8, int>, _Vector<8, int>)" >;
647
+ def packsswb256 : X86Builtin<" _Vector<32, char>(_Vector<16, short>, _Vector<16, short>)" >;
648
+ def packssdw256 : X86Builtin<" _Vector<16, short>(_Vector<8, int>, _Vector<8, int>)" >;
649
+ def packuswb256 : X86Builtin<" _Vector<32, char>(_Vector<16, short>, _Vector<16, short>)" >;
650
650
}
651
651
652
652
let Features = " avx2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<128 >] in {
@@ -1308,11 +1308,14 @@ let Features = "avx512f", Attributes = [NoThrow, Const, RequiredVectorWidth<512>
1308
1308
1309
1309
let Features = " avx512bw" , Attributes = [NoThrow, Const, RequiredVectorWidth<512 >] in {
1310
1310
def ucmpw512_mask : X86Builtin<" unsigned int(_Vector<32, short>, _Vector<32, short>, _Constant int, unsigned int)" >;
1311
- def packssdw512 : X86Builtin<" _Vector<32, short>(_Vector<16, int>, _Vector<16, int>)" >;
1311
+ def pshufb512 : X86Builtin<" _Vector<64, char>(_Vector<64, char>, _Vector<64, char>)" >;
1312
+ }
1313
+
1314
+ let Features = " avx512bw" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<512 >] in {
1312
1315
def packsswb512 : X86Builtin<" _Vector<64, char>(_Vector<32, short>, _Vector<32, short>)" >;
1313
- def packusdw512 : X86Builtin<" _Vector<32, short>(_Vector<16, int>, _Vector<16, int>)" >;
1316
+ def packssdw512 : X86Builtin<" _Vector<32, short>(_Vector<16, int>, _Vector<16, int>)" >;
1314
1317
def packuswb512 : X86Builtin<" _Vector<64, char>(_Vector<32, short>, _Vector<32, short>)" >;
1315
- def pshufb512 : X86Builtin<" _Vector<64, char >(_Vector<64, char >, _Vector<64, char >)" >;
1318
+ def packusdw512 : X86Builtin<" _Vector<32, short >(_Vector<16, int >, _Vector<16, int >)" >;
1316
1319
}
1317
1320
1318
1321
let Features = " avx512cd,avx512vl" , Attributes = [NoThrow, Const, RequiredVectorWidth<128 >] in {
0 commit comments