[hsa] Satisfy conditional move operand type constrains
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Feb 2016 17:42:06 +0000 (17:42 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Feb 2016 17:42:06 +0000 (17:42 +0000)
commit0d1b26a75421b18789affbebfa03e3d30c82bbae
tree8379ac80524de2a88452679ab20844956ad1fd06
parent63ee769cb1157bf02a5ad1083841fba29de7dd4b
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233749 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/hsa-gen.c
gcc/hsa.c
gcc/hsa.h