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

📄 simd-2.c

📁 Mac OS X 10.4.9 for x86 Source Code gcc 实现源代码
💻 C
字号:
// Test EH when V4SI SIMD registers are involved.// Contributed by Aldy Hernandez (aldy@quesejoda.com).// { dg-options "-O" }// { dg-options "-O -w" { target i?86-*-* } }// { dg-options "-O -w -maltivec" { target powerpc*-*-linux* } }// { dg-do run }#include "check-vect.h"typedef int __attribute__((vector_size (16))) vecint;vecint vecfunc (vecint beachbum){  return beachbum;}void f3 (void){  vecint foobar = (vecint) {0, 0};  foobar = vecfunc (foobar);  throw int();}void f2 (void){  vecint foobar = (vecint) {0, 0};  foobar = vecfunc (foobar);  f3 ();}void f1 (void){  int i;  try    {      f2 ();    }  catch (int)    {      i = 9;    }}int main (){  /* Exit with zero if the hardware does not support AltiVec instructions.  */  check_vect ();  f1 ();  return 0;}

⌨️ 快捷键说明

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