@@ -105,9 +105,9 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<128>] in {
105105 def vec_set_v8hi : X86Builtin<" _Vector<8, short>(_Vector<8, short>, short, _Constant int)" >;
106106 }
107107
108- let Features = " sse2" , Attributes = [NoThrow, Const, Constexpr] in {
108+ let Features = " sse2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth< 128 > ] in {
109109 def pmulhw128 : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Vector<8, short>)" >;
110- def pmulhuw128 : X86Builtin<" _Vector<8, short>(_Vector<8, short>, _Vector<8, short>)" >;
110+ def pmulhuw128 : X86Builtin<" _Vector<8, unsigned short>(_Vector<8, unsigned short>, _Vector<8, unsigned short>)" >;
111111 }
112112
113113 let Features = " sse3" in {
@@ -621,7 +621,7 @@ let Features = "avx2", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] i
621621}
622622
623623let Features = " avx2" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<256 >] in {
624- def pmulhuw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>)" >;
624+ def pmulhuw256 : X86Builtin<" _Vector<16, unsigned short>(_Vector<16, unsigned short>, _Vector<16, unsigned short>)" >;
625625 def pmulhw256 : X86Builtin<" _Vector<16, short>(_Vector<16, short>, _Vector<16, short>)" >;
626626}
627627
@@ -1438,7 +1438,7 @@ let Features = "avx512bw,evex512", Attributes = [NoThrow, Const, RequiredVectorW
14381438}
14391439
14401440let Features = " avx512bw,evex512" , Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<512 >] in {
1441- def pmulhuw512 : X86Builtin<" _Vector<32, short>(_Vector<32, short>, _Vector<32, short>)" >;
1441+ def pmulhuw512 : X86Builtin<" _Vector<32, unsigned short>(_Vector<32, unsigned short>, _Vector<32, unsigned short>)" >;
14421442 def pmulhw512 : X86Builtin<" _Vector<32, short>(_Vector<32, short>, _Vector<32, short>)" >;
14431443}
14441444
0 commit comments