From: Venkataramanan Kumar Date: Fri, 5 Jun 2015 07:58:01 +0000 (+0000) Subject: sse.md (sse3_mwait): Swap the operand constriants. X-Git-Tag: releases/gcc-4.8.5~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83e76f4489cf3d5f4c02ff64ff22ab53ca64e021;p=thirdparty%2Fgcc.git sse.md (sse3_mwait): Swap the operand constriants. 2015-06-05 Venkataramanan Kumar * config/i386/sse.md (sse3_mwait): Swap the operand constriants. From-SVN: r224147 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 10676df506ce..97d90074cf77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-06-05 Venkataramanan Kumar + + * config/i386/sse.md (sse3_mwait): Swap the operand constriants. + 2015-06-03 Jakub Jelinek Backported from mainline diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 89ead074781c..4877b73d0ca1 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -7823,10 +7823,12 @@ (set_attr "atom_sse_attr" "fence") (set_attr "memory" "unknown")]) - +;; As per AMD and Intel ISA manuals, the first operand is extensions +;; and it goes to %ecx. The second operand received is hints and it goes +;; to %eax. (define_insn "sse3_mwait" - [(unspec_volatile [(match_operand:SI 0 "register_operand" "a") - (match_operand:SI 1 "register_operand" "c")] + [(unspec_volatile [(match_operand:SI 0 "register_operand" "c") + (match_operand:SI 1 "register_operand" "a")] UNSPECV_MWAIT)] "TARGET_SSE3" ;; 64bit version is "mwait %rax,%rcx". But only lower 32bits are used.