diff options
author | kkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-12-10 05:42:02 +0000 |
---|---|---|
committer | kkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-12-10 05:42:02 +0000 |
commit | d3c9aa0579f5742726437e40f68a919b5ae1cc8d (patch) | |
tree | 7514c354622716ccfcebc69facff422e3a6c96e2 /gcc/config/arm/neon.md | |
parent | 45a0ce77f8b87863ad40d7b34adfe7ec400f401d (diff) | |
download | gcc-d3c9aa0579f5742726437e40f68a919b5ae1cc8d.tar.gz |
* genopinit.c: Include tm_p.h in generated file.
* config/arm/neon.md (vec_set<mode>_internal): Use INTVAL
to extract the integer from operands[2].
(vec_setv2di_internal): Likewise.
* config/arm/arm.c (arm_size_return_regs): Make return type
unsigned.
(arm_init_neon_builtins): Move code after declarations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130736 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/neon.md')
-rw-r--r-- | gcc/config/arm/neon.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md index 167367c5239..0c312e7c336 100644 --- a/gcc/config/arm/neon.md +++ b/gcc/config/arm/neon.md @@ -751,7 +751,7 @@ (match_operand:SI 2 "immediate_operand" "i")))] "TARGET_NEON" { - HOST_WIDE_INT elem = ffs (operands[2]) - 1; + HOST_WIDE_INT elem = ffs ((int) INTVAL (operands[2])) - 1; int half_elts = GET_MODE_NUNITS (<MODE>mode) / 2; int elt = elem % half_elts; int hi = (elem / half_elts) * 2; @@ -775,7 +775,7 @@ (match_operand:SI 2 "immediate_operand" "i")))] "TARGET_NEON" { - HOST_WIDE_INT elem = ffs (operands[2]) - 1; + HOST_WIDE_INT elem = ffs ((int) INTVAL (operands[2])) - 1; int regno = REGNO (operands[0]) + 2 * elem; operands[0] = gen_rtx_REG (DImode, regno); |