[patch] GCC generates incorrect mfctl instruction
Guy Martin <[email protected]>
| Newsgroups | gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
Hi all, This patch removes the ,w completer of the mfctl instruction when not used with cr11. Only cr11 needs the ,w completer on PA2.0. Reference : http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,959!114!244,00.html Please review. Guy -- Guy Martin Gentoo Linux - HPPA port Lead _______________________________________________ parisc-linux mailing list [email protected] http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
gcc-4.1.1-mfctl-fix.patch
(text/x-patch, 555 B)
Do not use ,w completer for register != cr11. Signed-off-by: Guy Martin <[email protected]> diff -uNr gcc-4.1.1.orig/gcc/config/pa/pa.md gcc-4.1.1/gcc/config/pa/pa.md --- gcc-4.1.1.orig/gcc/config/pa/pa.md 2007-01-30 06:59:07.579391048 +0000 +++ gcc-4.1.1/gcc/config/pa/pa.md 2007-01-30 07:23:29.213188936 +0000 @@ -9854,7 +9854,7 @@ [(set (match_operand:SI 0 "register_operand" "=r") (unspec:SI [(const_int 0)] UNSPEC_TP))] "" - "{mfctl|mfctl,w} %%cr27,%0" + "mfctl %%cr27,%0" [(set_attr "type" "multi") (set_attr "length" "4")])