aboutsummaryrefslogtreecommitdiff
path: root/gcc/hsa-brig.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2016-02-26 18:48:19 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2016-02-26 18:48:19 +0100
commit27d39ae1cca01885262fa267879f341c473110e3 (patch)
treeb4408134f40bc68c60e841c12eb3ec75918f91a3 /gcc/hsa-brig.c
parentde0fef0dd466bc329456b36cccfa6b06768da639 (diff)
downloadgcc-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.c2
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))