Add support for Vector Floor on PowerPC

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

View File

@ -233,6 +233,13 @@
"llvm": "vexptefp",
"ret": "f32",
"args": ["0"]
},
{
"intrinsic": "floor",
"width": [128],
"llvm": "vrfim",
"ret": "f32",
"args": ["0"]
}
]
}

View File

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