i386-sse-vect-types.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 22 行

C
22
字号
/* APPLE LOCAL file mainline 10-06-2005 *//* { dg-do compile { target i?86-*-* x86_64-*-* } } *//* { dg-options "-O0 -msse2" } *//* Test the intrinsics without optimization.  All of them are   defined as inline functions in mmintrin.h that reference the proper   builtin functions.  Defining away "static" and "__inline" results in   all of them being compiled as proper functions.  */#define static#define __inline#include <emmintrin.h>__m128d foo1(__m128d z, __m128d  a, int N) {   int i;  for (i=0; i<N; i++) {    a = _mm_add_ps(z, a); /* { dg-error "incompatible type" } */  }  return a;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?