From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83744 invoked by alias); 5 Oct 2015 11:14:39 -0000 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 Received: (qmail 83661 invoked by uid 48); 5 Oct 2015 11:14:36 -0000 From: "afomin.mailbox at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/67849] New: AVX512 Hitting upper-bank register on extract insn split Date: Mon, 05 Oct 2015 11:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: assemble-failure, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: afomin.mailbox at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg00326.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67849 Bug ID: 67849 Summary: AVX512 Hitting upper-bank register on extract insn split Product: gcc Version: 6.0 Status: UNCONFIRMED Keywords: assemble-failure, wrong-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: afomin.mailbox at gmail dot com CC: kyukhin at gcc dot gnu.org Target Milestone: --- Target: i?86-*-*, x86_64-*-* This issue has been found while compiling SPEC2006 CPU 447.dealII benchmark for KNL architecture. Given a machine that does not have AVX512VL extension, following "else" branch for vec_extract_lo insn described below ... (define_insn "vec_extract_lo_" [(set (match_operand: 0 "" "=,v") (vec_select: (match_operand:V8FI 1 "nonimmediate_operand" "v,m") (parallel [(const_int 0) (const_int 1) (const_int 2) (const_int 3)])))] "TARGET_AVX512F && !(MEM_P (operands[0]) && MEM_P (operands[1]))" { if () return "vextract64x4\t{$0x0, %1, %0|%0, %1, 0x0}"; else return "#"; } ;; ... ) ... may result in a split using YMMs from upper bank, hence emitting invalid insn like vextractf128 $0x1, %ymm31, %xmm0 We should tune insn constraints to avoid this issue.