From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by sourceware.org (Postfix) with ESMTPS id 94D183858D3C for ; Tue, 18 Oct 2022 03:14:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 94D183858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-xb29.google.com with SMTP id i127so4740549ybc.11 for ; Mon, 17 Oct 2022 20:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hFrWlUfdhiTk1gY4O9c+HVw8/HTgYbrBdgCC5oy8aVA=; b=bvqBRQTsfCXlGdkazT0EvEsuYZHNMI8eH8pQJq2UqTAi3tBRV2m8z90lFcx7bgYkpe RQyiP/cgDNrSQCwIHwd3AZNHoOun+b2lLKguXXcvaWDdgoGbJVOxO1R75iAXiA/fWNX0 sr6mRQ7zXYnQuzCH7AHevLJMPehZhpruFL1hyiwRE5BzbuVCtgzMwsSrtWHD6b2fFUCc aMthgcfYAmPTDCPGukLeWXZEfqbXjfJCQsj5Gxf+kDRFNtqWE6gHcVIB4SMpLMaPb5Zu jh3BpaU1EWqlqOwianRyRDWfv2dRuvQX1zoVA0vdOCajyyapFgSmsGiNBFpoLPYFsX3A rN6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hFrWlUfdhiTk1gY4O9c+HVw8/HTgYbrBdgCC5oy8aVA=; b=ur+hPfRJp4tLPmHFQIKTbQPtuAGhbTjYGbWD63gk/Wnhr6Lms1Y55q0pmtgquoJPxN KOc+jW0LUPnUPJiYaewNK+797y1YKCOaHZTcMdYUhWMDMrTk+a1sxX2YsqD/f3cuRpaK qCgm1I4K64zRKeO2jLXy9eg9sQJgtn6vF2IdcXgv3KkIs4bbkbghGY54MzcdQ5AVHDba LDbgZQ4YSzszuPxueP80nQuHFiGZtpvrUV/KcJkeHFh66t/S3yvf3tyKvPLsXftVhxDM 1hsjvUb+cG/1Hze2b/4U//LvUr586G8J6ODyqNST4rhCiRF8svWTKS7onxXjvkdW41O+ 0/HQ== X-Gm-Message-State: ACrzQf0Z7Bywtmww3MyA0hbzQJXiIBJTveK5uCLTD/mKvyfyHrFSOxu3 3y815NcznMWHQ9Q8ttvmE5Voa2kXzkY/PmSVYb9uApaqNFM= X-Google-Smtp-Source: AMsMyM5srCDs3HgX+iuF5QwHozMqjCpETQ/66y3cgHQ7IvrGyuB/9uUor/+acR7ntqCu5D4cHbAV7KgkKzdoJgYw9TU= X-Received: by 2002:a5b:a0f:0:b0:691:6fea:deda with SMTP id k15-20020a5b0a0f000000b006916feadedamr687896ybq.377.1666062881039; Mon, 17 Oct 2022 20:14:41 -0700 (PDT) MIME-Version: 1.0 References: <7e3fe210-6dbc-fc29-dbb8-b951e89cf7e9@yahoo.co.jp> <87f124f0-8a10-6c3b-6b12-cabf855e2e4b@yahoo.co.jp> <3296b387-083a-40cf-1bb5-40269e804f52@yahoo.co.jp> In-Reply-To: From: Max Filippov Date: Mon, 17 Oct 2022 20:14:29 -0700 Message-ID: Subject: Re: [PATCH v2] xtensa: Prepare the transition from Reload to LRA To: "Takayuki 'January June' Suwa" Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, Oct 17, 2022 at 7:57 PM Takayuki 'January June' Suwa wrote: > On 2022/10/16 14:03, Max Filippov wrote: > > There's also the following runtime failures, but only on call0 configuration: > > > > +FAIL: gcc.c-torture/execute/20010122-1.c -O1 execution test > > +FAIL: gcc.c-torture/execute/20010122-1.c -O2 execution test > > +FAIL: gcc.c-torture/execute/20010122-1.c -O3 -g execution test > > +FAIL: gcc.c-torture/execute/20010122-1.c -Os execution test > > +FAIL: gcc.c-torture/execute/20010122-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test > > both assembler outputs with and without this patch are identical on my side Interesting. In -O1 test I see the following difference that is going to affect the return value of the corresponding functions: --- gcc-13-3308-gb4a4c6382b14-call0-le/20010122-1.s 2022-10-17 20:07:32.390363204 -0700 +++ gcc-13-3309-g851636ecd015-call0-le/20010122-1.s 2022-10-17 20:06:36.613785546 -0700 @@ -143,13 +143,10 @@ test2: addi sp, sp, -16 s32i.n a0, sp, 12 - s32i.n a12, sp, 8 - mov.n a12, a0 l32r a2, .LC6 callx0 a2 - mov.n a2, a12 + mov.n a2, a0 l32i.n a0, sp, 12 - l32i.n a12, sp, 8 addi sp, sp, 16 ret.n .size test2, .-test2 @@ -161,13 +158,10 @@ test3: addi sp, sp, -16 s32i.n a0, sp, 12 - s32i.n a12, sp, 8 - mov.n a12, a0 l32r a2, .LC7 callx0 a2 - mov.n a2, a12 + mov.n a2, a0 l32i.n a0, sp, 12 - l32i.n a12, sp, 8 addi sp, sp, 16 ret.n .size test3, .-test3 @@ -258,14 +252,11 @@ test8: addi sp, sp, -16 s32i.n a0, sp, 12 - s32i.n a12, sp, 8 - mov.n a12, a0 l32r a2, .LC12 callx0 a2 l32r a2, .LC13 - s32i.n a12, a2, 0 + s32i.n a0, a2, 0 l32i.n a0, sp, 12 - l32i.n a12, sp, 8 addi sp, sp, 16 ret.n .size test8, .-test8 -- Thanks. -- Max