From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13502 invoked by alias); 21 Aug 2010 03:42:05 -0000 Received: (qmail 13456 invoked by uid 48); 21 Aug 2010 03:41:53 -0000 Date: Sat, 21 Aug 2010 03:42:00 -0000 Subject: [Bug target/45365] New: X86 FP add and multiply aren't commutative X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg01705.txt.bz2 According to table 4-7 in chapter 4, Vol 1 of IA32/Inte64 SDM, x86 FP add and multiply aren't commutative with Qnan/Snan inputs. But we have DEF_RTL_EXPR(PLUS, "plus", "ee", RTX_COMM_ARITH) DEF_RTL_EXPR(MULT, "mult", "ee", RTX_COMM_ARITH) That impacts x86 FP plus and mult patterns. Should we introduce a new target option to disable x86 commutative FP plus and mult? -- Summary: X86 FP add and multiply aren't commutative Product: gcc Version: 4.5.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl dot tools at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45365