⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 altivec-2.c

📁 linux下编程用 编译软件
💻 C
字号:
/* { dg-do compile { target powerpc*-*-* } } *//* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } *//* { dg-options "-maltivec" } *//* Program to test the vector_size attribute.  This needs to run on a   target that has vectors, so use AltiVec.  */#define vector __attribute__((vector_size(16)))vector int foobar;/* Only floats and integrals allowed.  We don't care if they map to SIs.  */struct X { int frances; };vector struct X hotdog;	/* { dg-error "invalid vector type" } *//* Arrays of vectors.  */vector char b[10], ouch;/* Pointers of vectors.  */vector short *shoe, polish;int xxx[sizeof(foobar) == 16 ? 69 : -1];int nc17[sizeof(shoe) == sizeof (char *) ? 69 : -1];code (){  *shoe = polish;  b[1] = ouch;}vector shorthoop (){  return polish;}

⌨️ 快捷键说明

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