From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bahamut.mc.pp.se (bahamut.mc.pp.se [IPv6:2001:470:dcd3:1:214:4fff:fe97:7322]) by sourceware.org (Postfix) with ESMTP id B034B385801A for ; Tue, 23 Feb 2021 07:23:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B034B385801A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mc.pp.se Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=marcus@mc.pp.se Received: from hakua (hakua [192.168.42.40]) by bahamut.mc.pp.se (Postfix) with SMTP id B2DE6A3C86; Tue, 23 Feb 2021 08:23:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mc.pp.se; s=hedgehog; t=1614065029; bh=1LM0vkCqWD/Y3FgPLHy4sGzQBMr1+3tmUB53CzYFbYk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=sviF24eFb/RL70qW9ADBDfQXJfFtPjELq7OPB 9IVgeaBJU8DUjMiSNGFeW0NuuKRK+byAEDPU4YwJVazOmtvxzOj3nLFmQChN8QYP5tp W2a4AAkRtE04a5Njnk7x5Y20gZGi/zeLjzI6ShwnR+GEJ9Ku5VJPHhL5mobE++aL6Zw = Received: by hakua (sSMTP sendmail emulation); Tue, 23 Feb 2021 08:23:48 +0100 From: "Marcus Comstedt" To: Kito Cheng Cc: GCC Patches Subject: Re: [PATCH v2 0/5] RISC-V big endian support References: <20210221000903.32039-1-marcus@mc.pp.se> Date: Tue, 23 Feb 2021 08:23:48 +0100 In-Reply-To: (kito.cheng@gmail.com's message of "Tue, 23 Feb 2021 15:12:27 +0800") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.24 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2021 07:23:54 -0000 Hi Kito, Kito Cheng writes: > FAIL: gcc.c-torture/execute/string-opt-5.c > FAIL: gcc.target/riscv/shift-and-1.c scan-assembler-not andi > FAIL: gcc.target/riscv/shift-and-2.c scan-assembler-not andi string-opt-5.c is one of the newlib issues I mentioned (handcoded assembler for strcmp which assumed LE (it was intended to #error out on BE, but used "BYTE_ORDER" instead of "__BYTE_ORDER__", so the check never worked)). I'll send the fixes later today. The shift-and tests don't generate incorrect code or anything, but it's still puzzling why the generated code is different from with -mlittle-endian. // Marcus