altivec-pr22085.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 14 行

C
14 行
字号
/* { dg-do compile { target powerpc*-*-* } } *//* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } *//* { dg-options "-maltivec -fpreprocessed" } *//* Program to test AltiVec with -fpreprocessed.  */int foo(__attribute__((altivec(vector__))) float x,        __attribute__((altivec(vector__))) float y){  if (__builtin_vec_vcmpeq_p (2, (x), (y)))    return 3245;  else    return 12;}

⌨️ 快捷键说明

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