Add mradds to the powerpc intrinsics

This commit is contained in:
Luca Barbato 2017-07-24 21:28:32 +00:00
parent a643bdc681
commit ccdfd7f7e6
2 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,13 @@
"llvm": "vperm",
"ret": "s32",
"args": ["0", "0", "s8"]
},
{
"intrinsic": "mradds",
"width": [128],
"llvm": "vmhraddshs",
"ret": "s16",
"args": ["0", "0", "0"]
}
]
}

View File

@ -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,
})
}