Patchwork [i386] : Fix ix86_set_reg_reg_cost w.r.t. TFmode

login
register
mail settings
Submitter Uros Bizjak
Date July 14, 2012, 7:35 p.m.
Message ID <CAFULd4ZRNDreyh26CjgNsU0GQbL9h5nQV-FFLx35W1UnTWdaTg@mail.gmail.com>
Download mbox | patch
Permalink /patch/171016/
State New
Headers show

Comments

Uros Bizjak - July 14, 2012, 7:35 p.m.
Hello!

Recently, gcc was switched to enable TFmode moves in XMM registers
also for TARGET_SSE. Sync reg-reg move cost calculation.

2012-07-14  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
	for TARGET_SSE.

Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.

Uros.

Patch

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c	(revision 189478)
+++ config/i386/i386.c	(working copy)
@@ -31962,7 +31962,7 @@  ix86_set_reg_reg_cost (enum machine_mode mode)
       break;
 
     case MODE_FLOAT:
-      if ((TARGET_SSE2 && mode == TFmode)
+      if ((TARGET_SSE && mode == TFmode)
 	  || (TARGET_80387 && mode == XFmode)
 	  || ((TARGET_80387 || TARGET_SSE2) && mode == DFmode)
 	  || ((TARGET_80387 || TARGET_SSE) && mode == SFmode))
@@ -31970,7 +31970,7 @@  ix86_set_reg_reg_cost (enum machine_mode mode)
       break;
 
     case MODE_COMPLEX_FLOAT:
-      if ((TARGET_SSE2 && mode == TCmode)
+      if ((TARGET_SSE && mode == TCmode)
 	  || (TARGET_80387 && mode == XCmode)
 	  || ((TARGET_80387 || TARGET_SSE2) && mode == DCmode)
 	  || ((TARGET_80387 || TARGET_SSE) && mode == SCmode))