[Bug target/119509] Missed optimization on AArch64 for comparison of division equivalent to right shift

2025-03-28 Thread skrll at netbsd dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119509 --- Comment #1 from Nick Hudson --- a32 seems similarly affected foo: bic r0, r0, #-16777216 bic r0, r0, #255 cmp r0, #255 movls r0, #0 movhi r0, #1 bx lr Could be foo:

[Bug c/119509] New: Missed optimization on Arm for comparison of division equivalent to right shift

2025-03-28 Thread skrll at netbsd dot org via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: skrll at netbsd dot org Target Milestone: --- #define BIT(n)(1ULL << (n)) #define BITS(m, n)(BIT((m) + 1) - 1) ^ (BIT(n) - 1) #

[Bug target/88005] [7/8/9 Regression] GCC on hppa misoptimisation function pointer call

2018-11-13 Thread skrll at netbsd dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88005 --- Comment #2 from Nick Hudson --- yes, it does. Nick nick@zoom:~/gcc$ ./inst/bin/hppa--linux-gcc -O2 -fno-delete-null-pointer-checks -S -o pdc.s pdc.i nick@zoom:~/gcc$ cat pdc.s .LEVEL 1.1 .text .align 4 .globl pdc_in

[Bug target/88005] New: [6/7/8/9] Regression GCC on hppa misoptimisation function pointer call

2018-11-13 Thread skrll at netbsd dot org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: skrll at netbsd dot org Target Milestone: --- Here's a testcase typedef int (*pdcio_t)(int, int, ...); pdcio_t pdc; int pdcbuf[64] __attribute__ ((__aligned

[Bug target/60039] sh3 optimisation bug with -O2

2014-03-18 Thread skrll at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039 --- Comment #8 from Nick Hudson --- On 03/18/14 02:34, kkojima at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039 > > --- Comment #7 from Kazumoto Kojima --- > Ugh, then this is an old problem and we've missed to give a

[Bug target/60039] sh3 optimisation bug with -O2

2014-02-07 Thread skrll at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039 --- Comment #4 from Nick Hudson --- Created attachment 32076 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32076&action=edit Full assembler output

[Bug target/60039] sh3 optimisation bug with -O2

2014-02-03 Thread skrll at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039 --- Comment #3 from Nick Hudson --- 1b6: 93 60 mov r9,r0 1b8: 76 02 mov.l r7,@(r0,r2) while (--nblks > 0) { 1ba: 10 41 dt r1 1bc: 03 8f bf.s1c6 1be: 73 62 mov

[Bug target/60039] sh3 optimisation bug with -O2

2014-02-03 Thread skrll at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039 --- Comment #2 from Nick Hudson --- /wrk/obj/landisk/wrk/netbsd/gcc48x/src/tooldir.NetBSD-6.99.28-amd64/bin/shle--netbsdelf-gcc -fvisibility=hidden -fstack-protector -Wstack-protector -Wno-error=stack-protector --param ssp-buffer-size=1 -g -std

[Bug target/60039] sh3 optimisation bug with -O2

2014-02-03 Thread skrll at netbsd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039 --- Comment #1 from Nick Hudson --- With -O2 I see invalid pointer derefs in the morecore function called by imalloc

[Bug target/60039] New: sh3 optimisation bug with -O2

2014-02-03 Thread skrll at netbsd dot org
Assignee: unassigned at gcc dot gnu.org Reporter: skrll at netbsd dot org Created attachment 32020 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32020&action=edit NetBSD's /usr/src/libexec/ld.elf_so/xmalloc Compiling the attached file for NetBSD/sh3 results in incorrect code.

[Bug target/30039] HPPA: Incorrect code generated on 64bit host

2006-12-01 Thread skrll at netbsd dot org
--- Comment #1 from skrll at netbsd dot org 2006-12-01 13:40 --- Created an attachment (id=12723) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12723&action=view) reduced test case from netbsd src/sys/kern/kern_uuid.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30039

[Bug target/30039] New: HPPA: Incorrect code generated on 64bit host

2006-12-01 Thread skrll at netbsd dot org
Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: skrll at netbsd dot org GCC build triplet: sparc64--netbsd GCC host triplet: sparc64--netbsd GCC target triplet: hppa--linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30039