[hsa] Satisfy conditional move operand type constrains
authorMartin Jambor <mjambor@suse.cz>
Fri, 26 Feb 2016 17:42:06 +0000 (18:42 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 26 Feb 2016 17:42:06 +0000 (18:42 +0100)
commitb15e4689e6b6c582c89d57eeb79fedc8b6081aeb
tree8379ac80524de2a88452679ab20844956ad1fd06
parent02108bb58c6905cc74eb4833067f39f92f5c9a6e
[hsa] Satisfy conditional move operand type constrains

2016-02-26  Martin Jambor  <mjambor@suse.cz>

* hsa.h (is_a_helper): New overload for hsa_op_immed for
hsa_op_with_type operands.
(hsa_unsigned_type_for_type): Declare.
* hsa.c (hsa_unsigned_type_for_type): New function.
* hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
(gen_hsa_insns_for_operation_assignment): Satisfy constrains of
the finalizer.  Do not emit extra move.

From-SVN: r233749
gcc/ChangeLog
gcc/hsa-gen.c
gcc/hsa.c
gcc/hsa.h