Add support for Vector Log2 Estimate Float on PowerPC

This commit is contained in:
Luca Barbato 2017-08-04 00:19:58 +00:00
parent f52f1ab7e8
commit 1206ae2b12
2 changed files with 12 additions and 0 deletions

View file

@ -240,6 +240,13 @@
"llvm": "vrfim",
"ret": "f32",
"args": ["0"]
},
{
"intrinsic": "loge",
"width": [128],
"llvm": "vlogefp",
"ret": "f32",
"args": ["0"]
}
]
}

View file

@ -412,6 +412,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
output: &::F32x4,
definition: Named("llvm.ppc.altivec.vrfim")
},
"_vec_loge" => Intrinsic {
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
output: &::F32x4,
definition: Named("llvm.ppc.altivec.vlogefp")
},
_ => return None,
})
}