public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44180]  New: [vect256] Wrong
@ 2010-05-17 23:13 hjl dot tools at gmail dot com
  2010-05-17 23:48 ` [Bug target/44180] [vect256] Wrong vec_extract_evenv8sf and vec_extract_oddv8sf hjl at gcc dot gnu dot org
  0 siblings, 1 reply; 4+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-05-17 23:13 UTC (permalink / raw)
  To: gcc-bugs

[hjl@gnu-6 gcc]$ cat z.c
#define N 16

float b[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
float c[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
float a[N];

void
test (void)
{
  int i;
  for (i = 0; i < N/2; i++)
    a[i] = b[2*i+1] * c[2*i+1];
}
[hjl@gnu-6 gcc]$ ./xgcc -B./ -O2 -ftree-vectorize -mavx -S z.c
[hjl@gnu-6 gcc]$ cat z.s
        .file   "z.c"
        .text
        .p2align 4,,15
.globl test
        .type   test, @function
test:
.LFB0:
        .cfi_startproc
        vxorps  %xmm0, %xmm0, %xmm0
        pushq   %rbp
        .cfi_def_cfa_offset 16
        movq    %rsp, %rbp
        .cfi_offset 6, -16
        .cfi_def_cfa_register 6
        vmovaps %ymm0, a(%rip)
        leave
        .cfi_def_cfa 7, 8
        ret
        .cfi_endproc

The probem is "vec_extract_evenv8sf" and "vec_extract_oddv8sf" call
expand_vec_perm_even_odd_1 which calls expand_vselect and
expand_vec_perm_vpermil without checking return values. For V4SF,
those functions return false.


-- 
           Summary: [vect256] Wrong
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44180


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-14  2:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44180-4@http.gcc.gnu.org/bugzilla/>
2010-10-13 21:20 ` [Bug target/44180] [vect256] Wrong vec_extract_evenv8sf and vec_extract_oddv8sf hjl at gcc dot gnu.org
2010-10-14  2:12 ` hjl at gcc dot gnu.org
2010-10-14  2:13 ` hjl.tools at gmail dot com
2010-05-17 23:13 [Bug target/44180] New: [vect256] Wrong hjl dot tools at gmail dot com
2010-05-17 23:48 ` [Bug target/44180] [vect256] Wrong vec_extract_evenv8sf and vec_extract_oddv8sf hjl at gcc dot gnu dot org

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).