Better bundle template selection

This commit is contained in:
Bernd Schmidt 2000-10-31 10:30:11 +00:00
parent 10689f25cd
commit ebeeafe61c
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
* tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
2000-10-30 Kazu Hirata <kazu@hxi.com> 2000-10-30 Kazu Hirata <kazu@hxi.com>
* expr.c: Fix formatting. * expr.c: Fix formatting.

View File

@ -5711,9 +5711,9 @@ match (int templ, int type, int slot)
static inline int static inline int
extra_goodness (int templ, int slot) extra_goodness (int templ, int slot)
{ {
if (match (templ, IA64_TYPE_F, slot)) if (slot == 1 && match (templ, IA64_TYPE_F, slot))
return 2; return 2;
if (match (templ, IA64_TYPE_B, slot)) if (slot == 2 && match (templ, IA64_TYPE_B, slot))
return 1; return 1;
return 0; return 0;
} }