This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bad assembly generated for __builtin_ia32_clflush


This fixes one of the problems uncovered by the previously sent ix86
MMX/SSE
testsuite additions.

Jan

2004-07-08 Jan Beulich <jbeulich@novell.com>

	* config/i386/i386.md (sse2_clflush): Use correct operand for
clflush.

---
/home/jbeulich/src/gcc/mainline/2004-07-05.10.09/gcc/config/i386/i386.md	2004-07-02
15:20:47.000000000 +0200
+++ 2004-07-05.10.09/gcc/config/i386/i386.md	2004-07-07
15:26:23.029339392 +0200
@@ -23906,7 +23906,7 @@
   [(unspec_volatile [(match_operand 0 "address_operand" "p")]
 		    UNSPECV_CLFLUSH)]
   "TARGET_SSE2"
-  "clflush %0"
+  "clflush\t%a0"
   [(set_attr "type" "sse")
    (set_attr "memory" "unknown")])
 

Attachment: gcc-mainline-x86-clflush.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]