-
- Downloads
Use HOST_WIDE_INT_{C,UC,0,0U,1,1U} macros some more
I've searched for some uses of (HOST_WIDE_INT) constant or (unsigned HOST_WIDE_INT) constant and turned them into uses of the appropriate macros. THere are quite a few cases in non-i386 backends but I've left that out for now. The only behavior change is in build_replicated_int_cst where the left shift was done in HOST_WIDE_INT type but assigned to unsigned HOST_WIDE_INT, which I've changed into unsigned HOST_WIDE_INT shift. 2024-02-24 Jakub Jelinek <jakub@redhat.com> gcc/ * builtins.cc (fold_builtin_isascii): Use HOST_WIDE_INT_UC macro. * combine.cc (make_field_assignment): Use HOST_WIDE_INT_1U macro. * double-int.cc (double_int::mask): Use HOST_WIDE_INT_UC macros. * genattrtab.cc (attr_alt_complement): Use HOST_WIDE_INT_1 macro. (mk_attr_alt): Use HOST_WIDE_INT_0 macro. * genautomata.cc (bitmap_set_bit, CLEAR_BIT): Use HOST_WIDE_INT_1 macros. * ipa-strub.cc (can_strub_internally_p): Use HOST_WIDE_INT_1 macro. * loop-iv.cc (implies_p): Use HOST_WIDE_INT_1U macro. * pretty-print.cc (test_pp_format): Use HOST_WIDE_INT_C and HOST_WIDE_INT_UC macros. * rtlanal.cc (nonzero_bits1): Use HOST_WIDE_INT_UC macro. * tree.cc (build_replicated_int_cst): Use HOST_WIDE_INT_1U macro. * tree.h (DECL_OFFSET_ALIGN): Use HOST_WIDE_INT_1U macro. * tree-ssa-structalias.cc (dump_varinfo): Use ~HOST_WIDE_INT_0U macros. * wide-int.cc (divmod_internal_2): Use HOST_WIDE_INT_1U macro. * config/i386/constraints.md (define_constraint "L"): Use HOST_WIDE_INT_C macro. * config/i386/i386.md (movabsq split peephole2): Use HOST_WIDE_INT_C macro. (movl + movb peephole2): Likewise. * config/i386/predicates.md (x86_64_zext_immediate_operand): Likewise. (const_32bit_mask): Likewise. gcc/objc/ * objc-encoding.cc (encode_array): Use HOST_WIDE_INT_0 macros.
Showing
- gcc/builtins.cc 1 addition, 1 deletiongcc/builtins.cc
- gcc/combine.cc 1 addition, 1 deletiongcc/combine.cc
- gcc/config/i386/constraints.md 1 addition, 1 deletiongcc/config/i386/constraints.md
- gcc/config/i386/i386.md 2 additions, 2 deletionsgcc/config/i386/i386.md
- gcc/config/i386/predicates.md 2 additions, 2 deletionsgcc/config/i386/predicates.md
- gcc/double-int.cc 2 additions, 2 deletionsgcc/double-int.cc
- gcc/genattrtab.cc 2 additions, 2 deletionsgcc/genattrtab.cc
- gcc/genautomata.cc 3 additions, 3 deletionsgcc/genautomata.cc
- gcc/ipa-strub.cc 1 addition, 1 deletiongcc/ipa-strub.cc
- gcc/loop-iv.cc 1 addition, 1 deletiongcc/loop-iv.cc
- gcc/objc/objc-encoding.cc 2 additions, 2 deletionsgcc/objc/objc-encoding.cc
- gcc/pretty-print.cc 8 additions, 5 deletionsgcc/pretty-print.cc
- gcc/rtlanal.cc 1 addition, 1 deletiongcc/rtlanal.cc
- gcc/tree-ssa-structalias.cc 2 additions, 3 deletionsgcc/tree-ssa-structalias.cc
- gcc/tree.cc 1 addition, 1 deletiongcc/tree.cc
- gcc/tree.h 1 addition, 1 deletiongcc/tree.h
- gcc/wide-int.cc 1 addition, 2 deletionsgcc/wide-int.cc
Loading
Please register or sign in to comment