From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8758938460B4; Sat, 22 May 2021 05:11:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8758938460B4 From: "slandden at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/24530] doesn't understand vector double calling conventions on ppc64el Date: Sat, 22 May 2021 05:11:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: slandden at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 05:11:56 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24530 --- Comment #2 from Shawn Landden --- debian@big:~$ cat test.c #include #include typedef double v2f64 __attribute__((vector_size(16))); v2f64 __attribute__ ((noinline)) addD(v2f64 one, v2f64 two) { return one + two; } int main() { v2f64 one =3D {1.5, 2.5}; v2f64 two =3D {3.5, 4.5}; v2f64 res =3D addD(one, two); printf(" =3D> {%d, %d}\n", res[0], res[1]); } debian@big:~$ gcc test.c -g -O3 debian@big:~$ gdb ./a.out=20 GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Reading symbols from ./a.out... (gdb) break addD Breakpoint 1 at 0x890: file test.c, line 7. (gdb) r Starting program: /home/debian/a.out=20 Breakpoint 1, addD (one=3D..., two=3D...) at test.c:7 7 return one + two; (gdb) p one $1 =3D {0, 0} (gdb) p two $2 =3D {0, 0} (gdb) p $vs34 $3 =3D {uint128 =3D 85091360917668755180967208061872635904, v2_double =3D {= 1.5, 2.5}, v4_float =3D {0, 1.9375, 0, 2.0625}, v4_int32 =3D {0, 1073217536, 0,=20 1074003968}, v8_int16 =3D {0, 0, 0, 16376, 0, 0, 0, 16388}, v16_int8 = =3D {0, 0, 0, 0, 0, 0, -8, 63, 0, 0, 0, 0, 0, 0, 4, 64}} (gdb) p $vs35 $4 =3D {uint128 =3D 85164053073688242767772264510015930368, v2_double =3D {= 3.5, 4.5}, v4_float =3D {0, 2.1875, 0, 2.28125}, v4_int32 =3D {0, 1074528256, 0,=20 1074921472}, v8_int16 =3D {0, 0, 0, 16396, 0, 0, 0, 16402}, v16_int8 = =3D {0, 0, 0, 0, 0, 0, 12, 64, 0, 0, 0, 0, 0, 0, 18, 64}} (gdb) finish Run till exit from #0 addD (one=3D..., two=3D...) at test.c:7 0x00000001000006b0 in main () at test.c:14 14 printf(" =3D> {%d, %d}\n", res[0], res[1]); Value returned is $5 =3D {5, 7} --=20 You are receiving this mail because: You are on the CC list for the bug.=