: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: madhur4127 at gmail dot com
Target Milestone: ---
Context: Big integer addition using ADC (_addcarry_u64).
See Godbolt link: https://godbolt.org/z/rMxe6W
Example
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94945
Madhur Chauhan changed:
What|Removed |Added
Version|10.0|10.1.1
Component|rtl-optimizat
: translation
Assignee: unassigned at gcc dot gnu.org
Reporter: madhur4127 at gmail dot com
Target Milestone: ---
Created attachment 48693
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48693&action=edit
Original code
Attached simplified.cc, which aims to be a c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95563
--- Comment #1 from Madhur Chauhan ---
(In reply to Madhur Chauhan from comment #0)
> Created attachment 48693 [details]
> Original code
My bad, this is the simplified version of the code but its name is misleading.
The original code is in the U
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: madhur4127 at gmail dot com
Target Milestone: ---
Created attachment 47584
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47584&action=edit
Complete code for comput
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: madhur4127 at gmail dot com
Target Milestone: ---
Created attachment 47585
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47585&action=edit
Complete code for comput
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93141
--- Comment #1 from Madhur Chauhan ---
The source of this bug is the stackoverflow Q&A:
https://stackoverflow.com/questions/59575408/fastest-way-to-sum-dot-product-of-vector-of-unsigned-64-bit-integers-using-192-2/59579310#59579310
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93141
--- Comment #6 from Madhur Chauhan ---
As far as I can tell optimal asm generated should be like:
mov-load from on array
mul or preferably mulx with a memory source from the other array
add + adc into 128-bit answer register
adc reg, 0 to accum
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93141
--- Comment #7 from Madhur Chauhan ---
As far as I can tell optimal asm generated should be like:
mov-load from on array
mul or preferably mulx with a memory source from the other array
add + adc into 128-bit answer register
adc reg, 0 to accum
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: madhur4127 at gmail dot com
Target Milestone: ---
Godbolt: https://godbolt.org/z/oKrGfh34z
Code:
```
#include
#include
std::optional x(uint16_t x)
{ return x <= 1 ?
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: madhur4127 at gmail dot com
Target Milestone: ---
This code:
```
#define myassert(x) \
do { \
if (! (x) ) \
abort(); \
} while (false)
static void recursive(int n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107334
Madhur Chauhan changed:
What|Removed |Added
CC||madhur4127 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109686
Madhur Chauhan changed:
What|Removed |Added
Resolution|--- |DUPLICATE
Status|UNCONFIRM
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107334
--- Comment #3 from Madhur Chauhan ---
I feel changing the warning text will still cause troubles for people using
-Werror. This forces to use ignore pragmas or disable this warning completely,
none of them are ideal.
Maybe disable warning in t
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: madhur4127 at gmail dot com
Target Milestone: ---
Godbolt: https://compiler-explorer.com/z/Gr8E5zfo5
Default operator== produces inefficient assembly where it
15 matches
Mail list logo