From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 752043858D35; Thu, 13 Apr 2023 09:43:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 752043858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681378988; bh=j9P0VN0BQFiPorEeDXribfACB1FqQr0mHAMKbgV+UqQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U1WMKJehK6TzarD9SoZHhb9ejrZvubKNS3dMNv85s9Blh74NvwlR9fCS7dw1qNXm9 gFUyOAbkXtugU/NMhedVmQOoGr6fxoPziqDWqXQg1EWZJK0jgKb3KfKOtEJOIGM0Yl LpMdp7hYi5a0Lr4dyi4vBdOMWHjckWP6pXxu0CF4= From: "guojiufu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108809] gcc.target/powerpc/builtins-5-p9-runnable.c fails on power 9 BE Date: Thu, 13 Apr 2023 09:43:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guojiufu at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108809 Jiu Fu Guo changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |guojiufu at gcc dot gnu.org --- Comment #2 from Jiu Fu Guo --- (In reply to Kewen Lin from comment #1) > It's very likely a test issue, may need to adjust some built-in function = for > endianness issue (as they have different element ordering on BE and LE). Yeap it should be the test case issue on the difference between BE and LE: For a buff `\001\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022`, after loading to a vector right justified, the result is different between = BE and LE. e.g. for a vector (from 128bit view: 0x0000000000000000102030405060708),=20 from v16_int8 view on BE, it is v16_int8 =3D {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,= 0x0, 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8}; but from the v16_int8 view on= LE, it is v16_int8 =3D {0x8, 0x7, 0x6, 0x5, 0x4, 0x3, 0x2, 0x1, 0x0, 0x0, 0x0, = 0x0, 0x0, 0x0, 0x0, 0x0}. So, we would just need to update the expected result for BE for this test c= ase.=