From patchwork Fri Oct 13 09:32:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: HAO CHEN GUI X-Patchwork-Id: 152445 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1766306vqb; Fri, 13 Oct 2023 02:33:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGt1vroD3gvllaL/A/XenJ7Zy6bfrQGrzeReMkw+aEX3W358xC2nr1I9u3GoVg7G6RpoJQC X-Received: by 2002:a05:620a:2956:b0:775:cf5f:8a77 with SMTP id n22-20020a05620a295600b00775cf5f8a77mr28179029qkp.34.1697189603643; Fri, 13 Oct 2023 02:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697189603; cv=none; d=google.com; s=arc-20160816; b=qR2g/MYeFcNlVSkkrIX6fcUJ6HWX9nHADVSLwDcN8f8ahYrMtAufQixTeBDO3q0leF X4aAd+2K/DyiMbyLoyUt9rK0F0YEzeyI0Ur4freRyPBiSjkX1QpIaFtMW449615ImgNW QE+7A2In0x5gkNTyschwGzC3p+5Gu1SrU8gPArl3zYh5NCbhAT2Nq+9cCpVZ232boTTA jpLeLMvVzUFviBmGO8vpuflBp03WJw+9DqvpvG7s/cLCaJxSuZRY31sBAOgOP8aS45I+ L+kspPFGBc7aNJ1Kb7LNsb0hKmrwGB5ItQAsjw4UFPxvduKCQmyuQ3GyARRbPy8a5VJX NgZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature:dmarc-filter:delivered-to; bh=J/CqJih0Fynvrget++bmIDFkDZV6T3PIlVeh3UP6WOg=; fh=Xl0YFiP+Ia8Aqs1F+VBUBMflnPDDzNov2ohILvfBp+Q=; b=fKvgBDD9BzAPVtZvKQa+/z/MVjLucycBpXuVr4Y6UxRGRwQuyBjpyDQbEzUgcJMbwd hx5ZBU16zY5aUj5SSodmIGKVRtSDVg94gN5SYxYnuHzuxr4eUmKQahGC9UOjvlGyhPih GjXbX520382I8diL6lIKJh7mXViVx2MYZH7Itr6+x9QXceq6QtM3XYz/b8OZ40dQEovR QD+f3L6alm/ESDuiMTV20vgZi8qMrd8EcUpE8XeeRDELgCIDBx3Y4CMITJpV1N2j4eNS Cq7yoSM4JRSXDDhBOXykJwamit6Jyb9aRUVJKsrKM0+UT1vVhpfYe4qNhm6xciu4Sfdb E6MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=VGx9LgI8; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ts18-20020a05620a3d9200b00767f86fc1f5si869637qkn.474.2023.10.13.02.33.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=VGx9LgI8; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5F42E38582A4 for ; Fri, 13 Oct 2023 09:33:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id BC6DB3858D1E for ; Fri, 13 Oct 2023 09:32:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BC6DB3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39D9PVMM016282; Fri, 13 Oct 2023 09:32:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : to : cc : from : subject : content-type : content-transfer-encoding; s=pp1; bh=J/CqJih0Fynvrget++bmIDFkDZV6T3PIlVeh3UP6WOg=; b=VGx9LgI87c5NrETHBKVAp1VVW3n21hbBRF4DMEMIKk0VrKIuwpqW4bjQL4lXpULySIrE HXEtyF/xI3tn+HkumFzeZq61m4FY0cZSC6U6VYxAvAoG5+D1TU7nVcJLBfXGssUodrEm mF+gHF150DN4/u3+ALuo2v4i51jza3UA/4R+aZzmK6IzSl//jKMWvIeVw92Ccb41o82V xNP90+pcZWZ1quXUNFZ5Rs9rnQKGII9VHswq0a/Jg6hhzYkZ80N1mFfl2Mk331TMAVzd n4pBI9l4+l1IpStqCJsoGY4fyUNsvGlt1IDCYd/hLIcNRdEEvssK/Mqj5f9OCcqNtqb0 vw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tq38g0anv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Oct 2023 09:32:54 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39D9PsVb017380; Fri, 13 Oct 2023 09:32:54 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tq38g0amy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Oct 2023 09:32:54 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39D8Pfvo009030; Fri, 13 Oct 2023 09:32:53 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3tpt57jy27-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Oct 2023 09:32:53 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39D9WorS22086264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Oct 2023 09:32:50 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EACD120040; Fri, 13 Oct 2023 09:32:49 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D34E120043; Fri, 13 Oct 2023 09:32:47 +0000 (GMT) Received: from [9.200.62.208] (unknown [9.200.62.208]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 13 Oct 2023 09:32:47 +0000 (GMT) Message-ID: Date: Fri, 13 Oct 2023 17:32:45 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: gcc-patches Cc: Segher Boessenkool , David , "Kewen.Lin" , Peter Bergner , richard.sandiford@arm.com From: HAO CHEN GUI Subject: PATCH-1v3, expand] Enable vector mode for compare_by_pieces [PR111449] X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: qOvS4xcY4Pah2wQ0MFlbXEHGSaTusBW1 X-Proofpoint-GUID: dCV89d7k1KSk7jqyOl5RcVwam-CuJhtd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-13_03,2023-10-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310130077 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779632285528777549 X-GMAIL-MSGID: 1779632285528777549 Hi, Vector mode instructions are efficient for compare on some targets. This patch enables vector mode for compare_by_pieces. Currently, vector mode is enabled for compare, set and clear. Helper function "qi_vector_p" decides if vector mode is enabled for certain by pieces operation. optabs_checking checks if optabs are available for the mode and certain by pieces operations. Both of them are called in fixed_size_mode finding functions. A member is added to class op_by_pieces_d in order to record the type of by pieces operations. The test case is in the second patch which is rs6000 specific. Compared to last version, the main change is to create two helper functions and call them in mode finding function. Bootstrapped and tested on x86 and powerpc64-linux BE and LE with no regressions. Thanks Gui Haochen ChangeLog Expand: Enable vector mode for pieces compares Vector mode compare instructions are efficient for equality compare on rs6000. This patch refactors the codes of pieces operation to enable vector mode for compare. gcc/ PR target/111449 * expr.cc (qi_vector_p): New function to indicate if vector mode is enabled for certain by pieces operations. (optabs_checking): New function to check if optabs are available for certain by pieces operations. (widest_fixed_size_mode_for_size): Replace the second argument with the type of by pieces operations. Call qi_vector_p to check if vector mode is enable. Call optabs_checking to check if optabs are available for the candidate vector mode. (by_pieces_ninsns): Pass the type of by pieces operation to widest_fixed_size_mode_for_size. (class op_by_pieces_d): Add a protected member m_op to record the type of by pieces operations. Declare member function fixed_size_mode widest_fixed_size_mode_for_size. (op_by_pieces_d::op_by_pieces_d): Change last argument to the type of by pieces operations, initialize m_op with it. Call non-member function widest_fixed_size_mode_for_size. (op_by_pieces_d::get_usable_mode): Call member function widest_fixed_size_mode_for_size. (op_by_pieces_d::smallest_fixed_size_mode_for_size): Call qi_vector_p to check if vector mode is enable. Call optabs_checking to check if optabs are available for the candidate vector mode. (op_by_pieces_d::run): Call member function widest_fixed_size_mode_for_size. (op_by_pieces_d::widest_fixed_size_mode_for_size): Implement. (move_by_pieces_d::move_by_pieces_d): Set m_op to MOVE_BY_PIECES. (store_by_pieces_d::store_by_pieces_d): Set m_op with the op. (can_store_by_pieces): Pass the type of by pieces operations to widest_fixed_size_mode_for_size. (clear_by_pieces): Initialize class store_by_pieces_d with CLEAR_BY_PIECES. (compare_by_pieces_d::compare_by_pieces_d): Set m_op to COMPARE_BY_PIECES. patch.diff diff --git a/gcc/expr.cc b/gcc/expr.cc index d87346dc07f..8ec3f5465a9 100644 --- a/gcc/expr.cc +++ b/gcc/expr.cc @@ -988,18 +988,43 @@ alignment_for_piecewise_move (unsigned int max_pieces, unsigned int align) return align; } -/* Return the widest QI vector, if QI_MODE is true, or integer mode - that is narrower than SIZE bytes. */ +/* Return true if vector mode is enabled for the op. */ +static bool +qi_vector_p (by_pieces_operation op) +{ + return (op == COMPARE_BY_PIECES + || op == SET_BY_PIECES + || op == CLEAR_BY_PIECES); +} + +/* Return true if optabs are available for the mode and by pieces + operations. */ +static bool +optabs_checking (fixed_size_mode mode, by_pieces_operation op) +{ + if ((op == SET_BY_PIECES || op == CLEAR_BY_PIECES) + && optab_handler (vec_duplicate_optab, mode) != CODE_FOR_nothing) + return true; + else if (op == COMPARE_BY_PIECES + && optab_handler (mov_optab, mode) != CODE_FOR_nothing + && can_compare_p (EQ, mode, ccp_jump)) + return true; + + return false; +} + +/* Return the widest QI vector, if vector mode is enabled for the op, + or integer mode that is narrower than SIZE bytes. */ static fixed_size_mode -widest_fixed_size_mode_for_size (unsigned int size, bool qi_vector) +widest_fixed_size_mode_for_size (unsigned int size, by_pieces_operation op) { fixed_size_mode result = NARROWEST_INT_MODE; gcc_checking_assert (size > 1); /* Use QI vector only if size is wider than a WORD. */ - if (qi_vector && size > UNITS_PER_WORD) + if (qi_vector_p (op) && size > UNITS_PER_WORD) { machine_mode mode; fixed_size_mode candidate; @@ -1009,8 +1034,7 @@ widest_fixed_size_mode_for_size (unsigned int size, bool qi_vector) { if (GET_MODE_SIZE (candidate) >= size) break; - if (optab_handler (vec_duplicate_optab, candidate) - != CODE_FOR_nothing) + if (optabs_checking (candidate, op)) result = candidate; } @@ -1061,8 +1085,7 @@ by_pieces_ninsns (unsigned HOST_WIDE_INT l, unsigned int align, { /* NB: Round up L and ALIGN to the widest integer mode for MAX_SIZE. */ - mode = widest_fixed_size_mode_for_size (max_size, - op == SET_BY_PIECES); + mode = widest_fixed_size_mode_for_size (max_size, op); if (optab_handler (mov_optab, mode) != CODE_FOR_nothing) { unsigned HOST_WIDE_INT up = ROUND_UP (l, GET_MODE_SIZE (mode)); @@ -1076,8 +1099,7 @@ by_pieces_ninsns (unsigned HOST_WIDE_INT l, unsigned int align, while (max_size > 1 && l > 0) { - mode = widest_fixed_size_mode_for_size (max_size, - op == SET_BY_PIECES); + mode = widest_fixed_size_mode_for_size (max_size, op); enum insn_code icode; unsigned int modesize = GET_MODE_SIZE (mode); @@ -1319,6 +1341,8 @@ class op_by_pieces_d bool m_overlap_op_by_pieces; /* True if QI vector mode can be used. */ bool m_qi_vector_mode; + /* The types of by pieces operations. */ + by_pieces_operation m_op; /* Virtual functions, overriden by derived classes for the specific operation. */ @@ -1327,11 +1351,12 @@ class op_by_pieces_d virtual void finish_mode (machine_mode) { } + fixed_size_mode widest_fixed_size_mode_for_size (unsigned int); public: op_by_pieces_d (unsigned int, rtx, bool, rtx, bool, by_pieces_constfn, void *, unsigned HOST_WIDE_INT, unsigned int, bool, - bool = false); + by_pieces_operation); void run (); }; @@ -1349,11 +1374,11 @@ op_by_pieces_d::op_by_pieces_d (unsigned int max_pieces, rtx to, void *from_cfn_data, unsigned HOST_WIDE_INT len, unsigned int align, bool push, - bool qi_vector_mode) + by_pieces_operation op) : m_to (to, to_load, NULL, NULL), m_from (from, from_load, from_cfn, from_cfn_data), m_len (len), m_max_size (max_pieces + 1), - m_push (push), m_qi_vector_mode (qi_vector_mode) + m_push (push), m_op (op) { int toi = m_to.get_addr_inc (); int fromi = m_from.get_addr_inc (); @@ -1375,8 +1400,7 @@ op_by_pieces_d::op_by_pieces_d (unsigned int max_pieces, rtx to, { /* Find the mode of the largest comparison. */ fixed_size_mode mode - = widest_fixed_size_mode_for_size (m_max_size, - m_qi_vector_mode); + = ::widest_fixed_size_mode_for_size (m_max_size, m_op); m_from.decide_autoinc (mode, m_reverse, len); m_to.decide_autoinc (mode, m_reverse, len); @@ -1401,7 +1425,7 @@ op_by_pieces_d::get_usable_mode (fixed_size_mode mode, unsigned int len) if (len >= size && prepare_mode (mode, m_align)) break; /* widest_fixed_size_mode_for_size checks SIZE > 1. */ - mode = widest_fixed_size_mode_for_size (size, m_qi_vector_mode); + mode = widest_fixed_size_mode_for_size (size); } while (1); return mode; @@ -1414,7 +1438,7 @@ fixed_size_mode op_by_pieces_d::smallest_fixed_size_mode_for_size (unsigned int size) { /* Use QI vector only for > size of WORD. */ - if (m_qi_vector_mode && size > UNITS_PER_WORD) + if (qi_vector_p (m_op) && size > UNITS_PER_WORD) { machine_mode mode; fixed_size_mode candidate; @@ -1427,8 +1451,7 @@ op_by_pieces_d::smallest_fixed_size_mode_for_size (unsigned int size) break; if (GET_MODE_SIZE (candidate) >= size - && (optab_handler (vec_duplicate_optab, candidate) - != CODE_FOR_nothing)) + && optabs_checking (candidate, m_op)) return candidate; } } @@ -1451,7 +1474,7 @@ op_by_pieces_d::run () /* widest_fixed_size_mode_for_size checks M_MAX_SIZE > 1. */ fixed_size_mode mode - = widest_fixed_size_mode_for_size (m_max_size, m_qi_vector_mode); + = widest_fixed_size_mode_for_size (m_max_size); mode = get_usable_mode (mode, length); by_pieces_prev to_prev = { nullptr, mode }; @@ -1516,14 +1539,19 @@ op_by_pieces_d::run () else { /* widest_fixed_size_mode_for_size checks SIZE > 1. */ - mode = widest_fixed_size_mode_for_size (size, - m_qi_vector_mode); + mode = widest_fixed_size_mode_for_size (size); mode = get_usable_mode (mode, length); } } while (1); } +fixed_size_mode +op_by_pieces_d::widest_fixed_size_mode_for_size (unsigned int size) +{ + return ::widest_fixed_size_mode_for_size (size, m_op); +} + /* Derived class from op_by_pieces_d, providing support for block move operations. */ @@ -1543,7 +1571,7 @@ class move_by_pieces_d : public op_by_pieces_d move_by_pieces_d (rtx to, rtx from, unsigned HOST_WIDE_INT len, unsigned int align) : op_by_pieces_d (MOVE_MAX_PIECES, to, false, from, true, NULL, - NULL, len, align, PUSHG_P (to)) + NULL, len, align, PUSHG_P (to), MOVE_BY_PIECES) { } rtx finish_retmode (memop_ret); @@ -1632,15 +1660,16 @@ move_by_pieces (rtx to, rtx from, unsigned HOST_WIDE_INT len, class store_by_pieces_d : public op_by_pieces_d { insn_gen_fn m_gen_fun; + void generate (rtx, rtx, machine_mode) final override; bool prepare_mode (machine_mode, unsigned int) final override; public: store_by_pieces_d (rtx to, by_pieces_constfn cfn, void *cfn_data, unsigned HOST_WIDE_INT len, unsigned int align, - bool qi_vector_mode) + by_pieces_operation op) : op_by_pieces_d (STORE_MAX_PIECES, to, false, NULL_RTX, true, cfn, - cfn_data, len, align, false, qi_vector_mode) + cfn_data, len, align, false, op) { } rtx finish_retmode (memop_ret); @@ -1730,7 +1759,8 @@ can_store_by_pieces (unsigned HOST_WIDE_INT len, while (max_size > 1 && l > 0) { fixed_size_mode mode - = widest_fixed_size_mode_for_size (max_size, memsetp); + = widest_fixed_size_mode_for_size (max_size, + memsetp ? SET_BY_PIECES : STORE_BY_PIECES); icode = optab_handler (mov_optab, mode); if (icode != CODE_FOR_nothing @@ -1793,7 +1823,7 @@ store_by_pieces (rtx to, unsigned HOST_WIDE_INT len, optimize_insn_for_speed_p ())); store_by_pieces_d data (to, constfun, constfundata, len, align, - memsetp); + memsetp ? SET_BY_PIECES : STORE_BY_PIECES); data.run (); if (retmode != RETURN_BEGIN) @@ -1814,7 +1844,7 @@ clear_by_pieces (rtx to, unsigned HOST_WIDE_INT len, unsigned int align) /* Use builtin_memset_read_str to support vector mode broadcast. */ char c = 0; store_by_pieces_d data (to, builtin_memset_read_str, &c, len, align, - true); + CLEAR_BY_PIECES); data.run (); } @@ -1832,12 +1862,13 @@ class compare_by_pieces_d : public op_by_pieces_d void generate (rtx, rtx, machine_mode) final override; bool prepare_mode (machine_mode, unsigned int) final override; void finish_mode (machine_mode) final override; + public: compare_by_pieces_d (rtx op0, rtx op1, by_pieces_constfn op1_cfn, void *op1_cfn_data, HOST_WIDE_INT len, int align, rtx_code_label *fail_label) : op_by_pieces_d (COMPARE_MAX_PIECES, op0, true, op1, true, op1_cfn, - op1_cfn_data, len, align, false) + op1_cfn_data, len, align, false, COMPARE_BY_PIECES) { m_fail_label = fail_label; } @@ -1943,6 +1974,7 @@ compare_by_pieces (rtx arg0, rtx arg1, unsigned HOST_WIDE_INT len, return target; } + /* Emit code to move a block Y to a block X. This may be done with string-move instructions, with multiple scalar move instructions,