This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] s390: improve condition code handling with compare&swap
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: straetling at de dot ibm dot com (Adrian Straetling)
- Cc: uweigand at de dot ibm dot com (Weigand Ulrich), gcc-patches at gcc dot gnu dot org
- Date: Wed, 13 Jul 2005 21:36:56 +0200 (CEST)
- Subject: Re: [patch] s390: improve condition code handling with compare&swap
Adrian Straetling wrote:
> * config/s390/s390.c: (s390_cc_modes_compatible): Move before
> "s390_emit_compare". Add handling of CCZ1mode.
> (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
> (390_emit_compare): Use "s390_cc_modes_compatible" for mode
> checking.
> (s390_branch_condition_mask): Add CCZ1mode handling.
> * config/s390/s390.md: ("seq", "*seq"): New pattern.
> ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
> Use CCZ1mode instead of CCZmode.
> * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
Applied, thanks!
Bye,
Ulrich
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com