s390.c (s390_expand_atomic): Adjust QI/HI atomic nand to the changed 4.4 semantic.

2008-11-20  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc/config/s390/s390.c (s390_expand_atomic): Adjust QI/HI atomic
	nand to the changed 4.4 semantic.

From-SVN: r142063
This commit is contained in:
Andreas Krebbel 2008-11-20 22:08:08 +00:00 committed by Andreas Krebbel
parent 81f5094da4
commit 6a238c58a6
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-11-20 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc/config/s390/s390.c (s390_expand_atomic): Adjust QI/HI atomic
nand to the changed 4.4 semantic.
2008-11-20 Jakub Jelinek <jakub@redhat.com>
PR middle-end/29215

View File

@ -4681,10 +4681,10 @@ s390_expand_atomic (enum machine_mode mode, enum rtx_code code,
NULL_RTX, 1, OPTAB_DIRECT);
break;
case MULT: /* NAND */
new_rtx = expand_simple_binop (SImode, XOR, new_rtx, ac.modemask,
NULL_RTX, 1, OPTAB_DIRECT);
new_rtx = expand_simple_binop (SImode, AND, new_rtx, val,
NULL_RTX, 1, OPTAB_DIRECT);
new_rtx = expand_simple_binop (SImode, XOR, new_rtx, ac.modemask,
NULL_RTX, 1, OPTAB_DIRECT);
break;
default:
gcc_unreachable ();