Patchwork [i386] : Emit CLOBBERs in VOIDmode

login
register
mail settings
Submitter Uros Bizjak
Date Nov. 20, 2012, 12:56 p.m.
Message ID <CAFULd4YeqoLMeXM9hFz_evzPTFPKZU0Vxo2dieuY9sySifhACQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/200322/
State New
Headers show

Comments

Uros Bizjak - Nov. 20, 2012, 12:56 p.m.
Hello!

2012-11-20  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_expand_call): Emit CLOBBERs in VOIDmode.

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

Uros.

Patch

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c	(revision 193657)
+++ config/i386/i386.c	(working copy)
@@ -23528,9 +23528,8 @@  ix86_expand_call (rtx retval, rtx fnaddr, rtx call
 				       UNSPEC_MS_TO_SYSV_CALL);
 
       for (i = 0; i < ARRAY_SIZE (clobbered_registers); i++)
-        vec[vec_len++]
-	  = gen_rtx_CLOBBER (SSE_REGNO_P (clobbered_registers[i])
-			     ? TImode : DImode,
+	vec[vec_len++]
+	  = gen_rtx_CLOBBER (VOIDmode,
 			     gen_rtx_REG (SSE_REGNO_P (clobbered_registers[i])
 					  ? TImode : DImode,
 					  clobbered_registers[i]));