We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1773233 commit 88fc6dcCopy full SHA for 88fc6dc
src/etc/platform-intrinsics/powerpc.json
@@ -135,6 +135,13 @@
135
"llvm": "vpk{1.kind}{1.data_type_short}{0.kind}s",
136
"ret": "u(8-16)",
137
"args": ["0Ws", "1"]
138
+ },
139
+ {
140
+ "intrinsic": "packpx",
141
+ "width": [128],
142
+ "llvm": "vpkpx",
143
+ "ret": "s16",
144
+ "args": ["s32", "s32"]
145
}
146
]
147
src/librustc_platform_intrinsics/powerpc.rs
@@ -312,6 +312,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
312
output: &::U16x8,
313
definition: Named("llvm.ppc.altivec.vpkswus")
314
},
315
+ "_vec_packpx" => Intrinsic {
316
+ inputs: { static INPUTS: [&'static Type; 2] = [&::I32x4, &::I32x4]; &INPUTS },
317
+ output: &::I16x8,
318
+ definition: Named("llvm.ppc.altivec.vpkpx")
319
320
_ => return None,
321
})
322
0 commit comments