Commit 6a238c58 by Andreas Krebbel Committed by Andreas Krebbel

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
parent 81f5094d
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> 2008-11-20 Jakub Jelinek <jakub@redhat.com>
PR middle-end/29215 PR middle-end/29215
......
...@@ -4681,10 +4681,10 @@ s390_expand_atomic (enum machine_mode mode, enum rtx_code code, ...@@ -4681,10 +4681,10 @@ s390_expand_atomic (enum machine_mode mode, enum rtx_code code,
NULL_RTX, 1, OPTAB_DIRECT); NULL_RTX, 1, OPTAB_DIRECT);
break; break;
case MULT: /* NAND */ 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, new_rtx = expand_simple_binop (SImode, AND, new_rtx, val,
NULL_RTX, 1, OPTAB_DIRECT); NULL_RTX, 1, OPTAB_DIRECT);
new_rtx = expand_simple_binop (SImode, XOR, new_rtx, ac.modemask,
NULL_RTX, 1, OPTAB_DIRECT);
break; break;
default: default:
gcc_unreachable (); gcc_unreachable ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment