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

📄 darwin-abi-2.c

📁 linux下编程用 编译软件
💻 C
字号:
/* { dg-do run { target powerpc*-*-darwin* } } *//* You might think you'd need -maltivec for this, but actually you   don't; GCC will happily do everything in GPRs, and it still   tests that the ABI is correct.  */#include <stdio.h>#include <stdlib.h>#define vector __attribute__((vector_size(16)))int main(void){  vector unsigned int v = { 100, 200, 300, 400 };  vector unsigned int w = { 4, 5, 6, 7 };  char x[64];  sprintf (x, "%lvu,%d,%lvu", v, 1, w);  if (strcmp (x, "100 200 300 400,1,4 5 6 7") != 0)    {      puts (x);      abort ();    }  return 0;}

⌨️ 快捷键说明

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