diff options
author | Martin Jambor <mjambor@suse.cz> | 2016-02-26 18:48:19 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2016-02-26 18:48:19 +0100 |
commit | 27d39ae1cca01885262fa267879f341c473110e3 (patch) | |
tree | b4408134f40bc68c60e841c12eb3ec75918f91a3 /gcc/hsa-brig.c | |
parent | de0fef0dd466bc329456b36cccfa6b06768da639 (diff) | |
download | gcc-27d39ae1cca01885262fa267879f341c473110e3.zip gcc-27d39ae1cca01885262fa267879f341c473110e3.tar.gz gcc-27d39ae1cca01885262fa267879f341c473110e3.tar.bz2 |
[hsa/69568] Fix ld instruction type for packed data
2016-02-26 Martin Jambor <mjambor@suse.cz>
PR hsa/69568
* hsa.h (hsa_type_packed_p): Declare.
* hsa.c (hsa_type_packed_p): New function.
* hsa-gen.c (mem_type_for_type): Use unsigned type for packed
loads.
(gen_hsa_insns_for_store): Use hsa_type_packed_p.
* hsa-brig.c (emit_basic_insn): Likewise.
From-SVN: r233751
Diffstat (limited to 'gcc/hsa-brig.c')
-rw-r--r-- | gcc/hsa-brig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/hsa-brig.c b/gcc/hsa-brig.c index cfbac58..61cfd8b 100644 --- a/gcc/hsa-brig.c +++ b/gcc/hsa-brig.c @@ -1803,7 +1803,7 @@ emit_basic_insn (hsa_insn_basic *insn) repr.base.type = lendian16 (type); repr.base.operands = lendian32 (emit_insn_operands (insn)); - if ((type & BRIG_TYPE_PACK_MASK) != BRIG_TYPE_PACK_NONE) + if (hsa_type_packed_p (type)) { if (hsa_type_float_p (type) && !hsa_opcode_floating_bit_insn_p (insn->m_opcode)) |