public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/101809] New: emulated gather capability doesn't support 32-bit target Date: Fri, 06 Aug 2021 23:04:57 +0000 [thread overview] Message-ID: <bug-101809-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101809 Bug ID: 101809 Summary: emulated gather capability doesn't support 32-bit target Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com, rguenth at gcc dot gnu.org Target Milestone: --- On Linux/x86-64, I get [hjl@gnu-cfl-2 xxx]$ cat x.c #include <stdint.h> #define loop_t uint32_t #define idx_t uint32_t void loop(double * const __restrict__ dst, double const * const __restrict__ src, idx_t const * const __restrict__ idx, loop_t const begin, loop_t const end) { for (loop_t i = begin; i < end; ++i) dst[i] = 42.0 * src[idx[i]]; } [hjl@gnu-cfl-2 xxx]$ make x.s /export/build/gnu/tools-build/gcc-gitlab-debug/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/tools-build/gcc-gitlab-debug/build-x86_64-linux/gcc/ -O3 -m32 -march=x86-64 -mfpmath=sse -S x.c [hjl@gnu-cfl-2 xxx]$ cat x.s .file "x.c" .text .p2align 4 .globl loop .type loop, @function loop: .LFB0: .cfi_startproc pushl %edi .cfi_def_cfa_offset 8 .cfi_offset 7, -8 pushl %esi .cfi_def_cfa_offset 12 .cfi_offset 6, -12 pushl %ebx .cfi_def_cfa_offset 16 .cfi_offset 3, -16 movl 28(%esp), %eax movl 32(%esp), %ecx movl 16(%esp), %ebx movl 20(%esp), %esi movl 24(%esp), %edi cmpl %ecx, %eax jnb .L1 movsd .LC0, %xmm1 .p2align 4,,10 .p2align 3 .L3: movl (%edi,%eax,4), %edx movsd (%esi,%edx,8), %xmm0 mulsd %xmm1, %xmm0 movsd %xmm0, (%ebx,%eax,8) addl $1, %eax cmpl %eax, %ecx jne .L3 .L1: popl %ebx .cfi_restore 3 .cfi_def_cfa_offset 12 popl %esi .cfi_restore 6 .cfi_def_cfa_offset 8 popl %edi .cfi_restore 7 .cfi_def_cfa_offset 4 ret .cfi_endproc .LFE0: .size loop, .-loop .section .rodata.cst8,"aM",@progbits,8 .align 8 .LC0: .long 0 .long 1078263808 .ident "GCC: (GNU) 12.0.0 20210806 (experimental)" .section .note.GNU-stack,"",@progbits [hjl@gnu-cfl-2 xxx]$ emulated gather capability isn't enabled.
next reply other threads:[~2021-08-06 23:04 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-06 23:04 hjl.tools at gmail dot com [this message] 2021-08-07 14:11 ` [Bug middle-end/101809] " hjl.tools at gmail dot com 2021-08-09 7:31 ` [Bug tree-optimization/101809] " rguenth at gcc dot gnu.org 2021-08-09 8:50 ` rguenth at gcc dot gnu.org 2021-08-10 9:29 ` rguenth at gcc dot gnu.org 2021-08-10 10:25 ` cvs-commit at gcc dot gnu.org 2021-08-10 10:28 ` rguenth at gcc dot gnu.org 2021-08-10 12:34 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-101809-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).