Add mradds to the powerpc intrinsics
This commit is contained in:
parent
a643bdc681
commit
ccdfd7f7e6
@ -16,6 +16,13 @@
|
||||
"llvm": "vperm",
|
||||
"ret": "s32",
|
||||
"args": ["0", "0", "s8"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "mradds",
|
||||
"width": [128],
|
||||
"llvm": "vmhraddshs",
|
||||
"ret": "s16",
|
||||
"args": ["0", "0", "0"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -27,6 +27,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
||||
output: &::I32x4,
|
||||
definition: Named("llvm.ppc.altivec.vperm")
|
||||
},
|
||||
"_vec_mradds" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 3] = [&::I16x8, &::I16x8, &::I16x8]; &INPUTS },
|
||||
output: &::I16x8,
|
||||
definition: Named("llvm.ppc.altivec.vmhraddshs")
|
||||
},
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user