File tree 2 files changed +17
-0
lines changed
librustc_platform_intrinsics
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 128
128
"llvm" : " vpk{0.kind}{1.data_type_short}{0.kind}s" ,
129
129
"ret" : " i(8-16)" ,
130
130
"args" : [" 0W" , " 1" ]
131
+ },
132
+ {
133
+ "intrinsic" : " packsu{1.kind}{1.data_type_short}" ,
134
+ "width" : [128 ],
135
+ "llvm" : " vpk{1.kind}{1.data_type_short}{0.kind}s" ,
136
+ "ret" : " u(8-16)" ,
137
+ "args" : [" 0Ws" , " 1" ]
131
138
}
132
139
]
133
140
}
Original file line number Diff line number Diff line change @@ -302,6 +302,16 @@ pub fn find(name: &str) -> Option<Intrinsic> {
302
302
output : & :: U16x8 ,
303
303
definition : Named ( "llvm.ppc.altivec.vpkuwus" )
304
304
} ,
305
+ "_vec_packsush" => Intrinsic {
306
+ inputs : { static INPUTS : [ & ' static Type ; 2 ] = [ & :: I16x8 , & :: I16x8 ] ; & INPUTS } ,
307
+ output : & :: U8x16 ,
308
+ definition : Named ( "llvm.ppc.altivec.vpkshus" )
309
+ } ,
310
+ "_vec_packsusw" => Intrinsic {
311
+ inputs : { static INPUTS : [ & ' static Type ; 2 ] = [ & :: I32x4 , & :: I32x4 ] ; & INPUTS } ,
312
+ output : & :: U16x8 ,
313
+ definition : Named ( "llvm.ppc.altivec.vpkswus" )
314
+ } ,
305
315
_ => return None ,
306
316
} )
307
317
}
You can’t perform that action at this time.
0 commit comments