Hi, this patch is a simple addition of reciprocal of square root gimple function into its HSAIL equivalent.
Committed to the branch, queued for merge to trunk soon. Thanks, Martin 2016-10-03 Martin Jambor <mjam...@suse.cz> * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT. --- gcc/hsa-gen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/hsa-gen.c b/gcc/hsa-gen.c index deb2a07..efb87a0 100644 --- a/gcc/hsa-gen.c +++ b/gcc/hsa-gen.c @@ -5386,6 +5386,10 @@ gen_hsa_insn_for_internal_fn_call (gcall *stmt, hsa_bb *hbb) gen_hsa_unaryop_for_builtin (BRIG_OPCODE_SQRT, stmt, hbb); break; + case IFN_RSQRT: + gen_hsa_unaryop_for_builtin (BRIG_OPCODE_NRSQRT, stmt, hbb); + break; + case IFN_TRUNC: gen_hsa_unaryop_for_builtin (BRIG_OPCODE_TRUNC, stmt, hbb); break; -- 2.10.0