comparison gcc/testsuite/g++.dg/vect/pr70729.cc @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // { dg-do compile } 1 // { dg-do compile }
2 // { dg-additional-options "-ffast-math -fopenmp-simd" } 2 // { dg-additional-options "-ffast-math -fopenmp-simd" }
3 // { dg-additional-options "-msse2" { target x86_64-*-* i?86-*-* } } 3 // { dg-additional-options "-msse2" { target x86_64-*-* i?86-*-* } }
4 4
5 inline void* my_alloc (__SIZE_TYPE__ bytes) {void *ptr; __builtin_posix_memalign (&ptr, bytes, 128);} 5 inline void* my_alloc (__SIZE_TYPE__ bytes) {void *ptr; __builtin_posix_memalign (&ptr, bytes, 128); return 0; }
6 inline void my_free (void* memory) {__builtin_free (memory);} 6 inline void my_free (void* memory) {__builtin_free (memory);}
7 7
8 template <typename T> 8 template <typename T>
9 class Vec 9 class Vec
10 { 10 {
68 v1.v_i[i] += (int)w1; 68 v1.v_i[i] += (int)w1;
69 C1[S_n + i] += w1; 69 C1[S_n + i] += w1;
70 } 70 }
71 } 71 }
72 72
73 // { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target x86_64-*-* i?86-*-* } } } 73 // { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { xfail *-*-* } } }