Add support for Vector Multiply Even on PowerPC
This commit is contained in:
parent
380b81853e
commit
9c6ab920ab
2 changed files with 27 additions and 0 deletions
|
@ -100,6 +100,13 @@
|
|||
"llvm": "vaddcuw",
|
||||
"ret": "u32",
|
||||
"args": ["0", "0"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "mule{1.kind}{1.data_type_short}",
|
||||
"width": [128],
|
||||
"llvm": "vmule{0.kind}{1.data_type_short}",
|
||||
"ret": "i(16-32)",
|
||||
"args": ["0N", "1"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -212,6 +212,26 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
|||
output: &::U32x4,
|
||||
definition: Named("llvm.ppc.altivec.vaddcuw")
|
||||
},
|
||||
"_vec_mulesb" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::I8x16, &::I8x16]; &INPUTS },
|
||||
output: &::I16x8,
|
||||
definition: Named("llvm.ppc.altivec.vmulesb")
|
||||
},
|
||||
"_vec_muleub" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::U8x16, &::U8x16]; &INPUTS },
|
||||
output: &::U16x8,
|
||||
definition: Named("llvm.ppc.altivec.vmuleub")
|
||||
},
|
||||
"_vec_mulesh" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::I16x8, &::I16x8]; &INPUTS },
|
||||
output: &::I32x4,
|
||||
definition: Named("llvm.ppc.altivec.vmulesh")
|
||||
},
|
||||
"_vec_muleuh" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 2] = [&::U16x8, &::U16x8]; &INPUTS },
|
||||
output: &::U32x4,
|
||||
definition: Named("llvm.ppc.altivec.vmuleuh")
|
||||
},
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue