pr35821-spu.c
来自「用于进行gcc测试」· C语言 代码 · 共 23 行
C
23 行
/* { dg-do compile { target { spu-*-* } } } */voidfoo (float f_gain1, int n_tail, float * __restrict__ f_in_hptr, float * __restrict__ f_out_hptr){ int i; __attribute__((__spu_vector__)) float *v_f_in_hptr, *v_f_out_hptr; f_in_hptr = ( float* )v_f_in_hptr; f_out_hptr = ( float* )v_f_out_hptr; for( i = 0 ; i < n_tail ; i++ ) { f_out_hptr[0] = f_in_hptr[0] * f_gain1; f_in_hptr++; f_out_hptr++; }}/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } *//* { dg-final { cleanup-tree-dump "vect" } } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?