ppc64-abi-3.c

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

C
31
字号
/* { dg-do compile { target powerpc64-*-linux* } } *//* { dg-require-effective-target lp64 } *//* { dg-options "-Wall" } *//* Testcase to check for ABI compliance of parameter passing   for the PowerPC64 ABI.  */typedef int __attribute__((vector_size(16))) v4si;typedef int __attribute__((vector_size(8))) v2si;v4si f(v4si v){ /* { dg-error "altivec instructions are disabled" "PR18631" { xfail *-*-* } } */    return v;}v2si g(v2si v){    return v;}int main(){    v4si v;    v2si w;    v = f (v); /* { dg-error "altivec instructions are disabled" "PR18631" { xfail *-*-* } } */    w = g (w);    return 0;}

⌨️ 快捷键说明

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