]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/i386/i386.c (ix86_expand_special_args_builtin): Use
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Nov 2013 23:36:31 +0000 (23:36 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Nov 2013 23:36:31 +0000 (23:36 +0000)
ix86_zero_extend_to_Pmode where appropriate.
(ix86_expand_builtin): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205236 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index fe8ea8ff8f30a8853b9ff490fef8390df58a7e18..e472888c3fb23323d1222a6c3abdd29fe234b6ed 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.c (ix86_expand_special_args_builtin): Use
+       ix86_zero_extend_to_Pmode where appropriate.
+       (ix86_expand_builtin): Ditto.
+
 2013-11-21  Cary Coutant  <ccoutant@google.com>
 
        * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
 2013-11-21  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/59058
-       * tree-loop-distribution.c (struct partition_s): Add plus_one
-       member.
+       * tree-loop-distribution.c (struct partition_s): Add plus_one member.
        (build_size_arg_loc): Apply niter adjustment here.
        (generate_memset_builtin): Adjust.
        (generate_memcpy_builtin): Likewise.
 
 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
 
-       * gimplify.h (gimplify_hasher : typed_free_remove, struct gimplify_ctx):
+       * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
        Move to gimplify.c.
        (free_gimplify_stack): Add prototype.
        * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
        (struct gimplify_ctx): Relocate here.
        (gimplify_ctxp): Make static.
-       (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a 
+       (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
        list of struct gimplify_ctx.
        (push_gimplify_context): Add default parameters and allocate a struct
        from the pool.
        new pseudos.
        (lra_create_new_reg_with_unique_value): Pass new argument value.
        (lra_emit_add, lra_emit_move): Ditto.
-       * lra-constraints.c (in_class_p): Add check for move for a new
-       insn.
+       * lra-constraints.c (in_class_p): Add check for move for a new insn.
        (change_class): Rename to lra_change_class.  Move to lra-int.h.
        (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
        change_class.
 
 2013-11-20  Jan Hubicka  <jh@suse.cz>
 
-       * opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
+       * opts.c (finish_options): Imply -ffat-lto-objects with
+       -fno-use-linker-plugin.
        * common.opt (fuse-linker-plugin): Add var.
 
 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
        Remove inline and related attributes.
        (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
        (__TM_is_illegal, __TM_is_footprint_exceeded)
-       (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
-       check.
+       (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
 
 2013-11-20  Richard Biener  <rguenther@suse.de>
 
 
        * gcc/config/aarch64/aarch64-builtins.c
        (aarch64_simd_itype): Remove.
-       (aarch64_simd_builtin_datum): Remove itype, add
-       qualifiers pointer.
+       (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
        (VAR1): Use qualifiers.
        (aarch64_build_scalar_type): New.
        (aarch64_build_vector_type): Likewise.
index 749be7fb46149efa349623e80928b7f7d72067dd..60e1b0f164d575e385887cd74f1293bc73bcb0f5 100644 (file)
@@ -32577,7 +32577,7 @@ ix86_expand_special_args_builtin (const struct builtin_description *d,
       gcc_assert (target == 0);
       if (memory)
        {
-         op = force_reg (Pmode, convert_to_mode (Pmode, op, 1));
+         op = ix86_zero_extend_to_Pmode (op);
          target = gen_rtx_MEM (tmode, op);
        }
       else
@@ -32622,7 +32622,7 @@ ix86_expand_special_args_builtin (const struct builtin_description *d,
          if (i == memory)
            {
              /* This must be the memory operand.  */
-             op = force_reg (Pmode, convert_to_mode (Pmode, op, 1));
+             op = ix86_zero_extend_to_Pmode (op);
              op = gen_rtx_MEM (mode, op);
              gcc_assert (GET_MODE (op) == mode
                          || GET_MODE (op) == VOIDmode);
@@ -32870,7 +32870,7 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
       mode1 = insn_data[icode].operand[1].mode;
       mode2 = insn_data[icode].operand[2].mode;
 
-      op0 = force_reg (Pmode, convert_to_mode (Pmode, op0, 1));
+      op0 = ix86_zero_extend_to_Pmode (op0);
       op0 = gen_rtx_MEM (mode1, op0);
 
       if (!insn_data[icode].operand[0].predicate (op0, mode0))
@@ -32902,7 +32902,7 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
        op0 = expand_normal (arg0);
        icode = CODE_FOR_sse2_clflush;
        if (!insn_data[icode].operand[0].predicate (op0, Pmode))
-         op0 = force_reg (Pmode, convert_to_mode (Pmode, op0, 1));
+         op0 = ix86_zero_extend_to_Pmode (op0);
 
        emit_insn (gen_sse2_clflush (op0));
        return 0;
@@ -32915,7 +32915,7 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
       op1 = expand_normal (arg1);
       op2 = expand_normal (arg2);
       if (!REG_P (op0))
-       op0 = force_reg (Pmode, convert_to_mode (Pmode, op0, 1));
+       op0 = ix86_zero_extend_to_Pmode (op0);
       if (!REG_P (op1))
        op1 = copy_to_mode_reg (SImode, op1);
       if (!REG_P (op2))
@@ -33172,7 +33172,7 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
       op0 = expand_normal (arg0);
       icode = CODE_FOR_lwp_llwpcb;
       if (!insn_data[icode].operand[0].predicate (op0, Pmode))
-       op0 = force_reg (Pmode, convert_to_mode (Pmode, op0, 1));
+       op0 = ix86_zero_extend_to_Pmode (op0);
       emit_insn (gen_lwp_llwpcb (op0));
       return 0;
 
@@ -33468,7 +33468,7 @@ addcarryx:
       /* Force memory operand only with base register here.  But we
         don't want to do it on memory operand for other builtin
         functions.  */
-      op1 = force_reg (Pmode, convert_to_mode (Pmode, op1, 1));
+      op1 = ix86_zero_extend_to_Pmode (op1);
 
       if (!insn_data[icode].operand[1].predicate (op0, mode0))
        op0 = copy_to_mode_reg (mode0, op0);