Add support for Vector Reciprocal Estimate Float on PowerPC

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

View File

@ -247,6 +247,13 @@
"llvm": "vlogefp",
"ret": "f32",
"args": ["0"]
},
{
"intrinsic": "re",
"width": [128],
"llvm": "vrefp",
"ret": "f32",
"args": ["0"]
}
]
}

View File

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