[Bug target/109463] suboptimal sequence for converting 64-bit unsigned int to float

2023-04-10 Thread elronnd at elronnd dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109463 --- Comment #3 from elronnd at elronnd dot net --- Yes, I think the gcc approach of branching is definitely better. But it's still a good idea to optimise for size in the cold path.

[Bug c/109463] New: suboptimal sequence for converting 64-bit unsigned int to float

2023-04-10 Thread elronnd at elronnd dot net via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: elronnd at elronnd dot net Target Milestone: --- double f(uint64_t x) { return x; } gives: test rdi,rdi js 10 pxor xmm0,xmm0 cvtsi2sd xmm0,rdi ret nop 10: movrax,rdi and

[Bug c/103113] New: Bad error message with multiply indirect pointer to struct

2021-11-06 Thread elronnd at elronnd dot net via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: elronnd at elronnd dot net Target Milestone: --- $ cat q.c int f() { struct { int m; } **x; return x->m; } $ gcc -c q.c q.c: In function ‘f’: q.c:3:17: error: ‘*x’ i

[Bug rtl-optimization/97607] New: Spurious sign extension

2020-10-27 Thread elronnd at elronnd dot net via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: elronnd at elronnd dot net Target Milestone: --- The following code extern void fun(char); void wrapper(char x) { fun(x); } Should compile 'wrapper' to a single

[Bug c/94558] New: Designated initializer inside _Generic is misinterpreted

2020-04-11 Thread elronnd at elronnd dot net
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: elronnd at elronnd dot net Target Milestone: --- POC: typedef struct{int _;} A; typedef struct{int _;} B; typedef union { A a; B b; } O; #define NO(o) _Generic((o

[Bug d/93215] New: If a label is created in an asm block in a templated function, then an error is reported if the function is instantiated multiple times

2020-01-09 Thread elronnd at elronnd dot net
Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: elronnd at elronnd dot net Target Milestone: --- Basic POC: void asm_test(int x)() { asm