[Bug Target/105617] New: Regression In Code Generation For ...
Maybe your like
Skip to site navigation (Press enter) [Bug target/105617] New: Regression in code generation for _addcarry_u64()
Search the site
already5chosen at yahoo dot com via Gcc-bugs Mon, 16 May 2022 05:09:03 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105617 Bug ID: 105617 Summary: Regression in code generation for _addcarry_u64() Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: already5chosen at yahoo dot com Target Milestone: --- It took many years until gcc caught up with MSVC and LLVM/clang in generation of code for chains of Intel's _addcarry_u64() intrinsic calls. But your finally managed to do it in gcc11. Unfortunately, the luck didn't last for long. void add4i(uint64_t dst[4], const uint64_t srcA[4], const uint64_t srcB[4]) { unsigned char c; unsigned long long r0; c = _addcarry_u64(0, srcA[0], srcB[0], &r0); unsigned long long r1; c = _addcarry_u64(c, srcA[1], srcB[1], &r1); unsigned long long r2; c = _addcarry_u64(c, srcA[2], srcB[2], &r2); unsigned long long r3; c = _addcarry_u64(c, srcA[3], srcB[3], &r3); dst[0] = r0; dst[1] = r1; dst[2] = r2; dst[3] = r3; } gcc 11.1 -O2 add4i: movq (%rdx), %rax addq (%rsi), %rax movq 8(%rsi), %rcx movq %rax, %r8 adcq 8(%rdx), %rcx movq 16(%rsi), %rax adcq 16(%rdx), %rax movq 24(%rdx), %rdx adcq 24(%rsi), %rdx movq %r8, (%rdi) movq %rcx, 8(%rdi) movq %rax, 16(%rdi) movq %rdx, 24(%rdi) ret gcc 12.1 -O2 add4i: movq (%rdx), %rax movq 8(%rsi), %rcx addq (%rsi), %rax movq 16(%rsi), %r8 adcq 8(%rdx), %rcx adcq 16(%rdx), %r8 movq %rax, %xmm1 movq 24(%rdx), %rdx adcq 24(%rsi), %rdx movq %r8, %xmm0 movq %rcx, %xmm3 movq %rdx, %xmm2 punpcklqdq %xmm3, %xmm1 punpcklqdq %xmm2, %xmm0 movups %xmm1, (%rdi) movups %xmm0, 16(%rdi) ret What ... ?! BTW, gcc 12.1 -O1 is still o.k.- Previous message
- View by thread
- View by date
- Next message
- [Bug target/105617] New: Regr... already5chosen at yahoo dot com via Gcc-bugs
- [Bug target/105617] [12/... pinskia at gcc dot gnu.org via Gcc-bugs
- [Bug target/105617] [12/... pinskia at gcc dot gnu.org via Gcc-bugs
- [Bug target/105617] [12/... rguenth at gcc dot gnu.org via Gcc-bugs
- [Bug target/105617] [12/... already5chosen at yahoo dot com via Gcc-bugs
- [Bug target/105617] [12/... already5chosen at yahoo dot com via Gcc-bugs
- [Bug target/105617] [12/... already5chosen at yahoo dot com via Gcc-bugs
- [Bug target/105617] [12/... crazylht at gmail dot com via Gcc-bugs
- [Bug target/105617] [12/... crazylht at gmail dot com via Gcc-bugs
- [Bug target/105617] [12/... crazylht at gmail dot com via Gcc-bugs
- [Bug target/105617] [12/... rguenth at gcc dot gnu.org via Gcc-bugs
Reply via email to
Search the site - The Mail Archive home
- gcc-bugs - all messages
- gcc-bugs - about the list
- Expand
- Previous message
- Next message
- The Mail Archive home
- Add your mailing list
- FAQ
- Support
- Privacy
- [email protected]/bugzilla/
Tag » _addcarry_u64 Clang
-
Visual C++ - _addcarry_u64 And _addcarryx_u64 With MSVC And ICC
-
_addcarry_u32(), _addcarry_u64() - Intel
-
Lib/Headers/adxintrin.h Source File - Clang
-
Add-with-carry And Subtract-with-borrow Support (x86_64 And Others)
-
Smhasher/PMP_Multilinear_64.h At Master - GitHub
-
Compile Issues On M1 Mac · Issue #87 · Albertobsd/keyhunt - GitHub
-
C++ - Producing Good Add With Carry Code From Clang
-
How To Access The Carry Flag While Adding Two 64 Bit Numbers Using ...
-
[Solved] Difference Between __builtin_addcll And _addcarry_u64
-
.html -- Source
-
使用MSVC和ICC添加Carry_u64和_addcarryx_u64 | 955Yes
-
Please Implement Integer Overflow Detection - Visual Studio Feedback
-
Compiler Explorer Privacy Policy