pr17055-1.c

来自「用于进行gcc测试」· C语言 代码 · 共 26 行

C
26
字号
/* PR middle-end/17055.  *//* { dg-do compile } *//* { dg-options "-O2 -ffast-math" } *//* { dg-options "-O2 -ffast-math -fno-common" { target hppa*-*-hpux* } } *//* This test used to abort, beacuse we do an "integer" fold to zero, i.e.   x - x = (T)0 where T is the type of x.  Unfortunately, fold_convert   was unable to convert integer_zero_node to the appropriate vector type.  */typedef float v4sf __attribute__((vector_size(16)));typedef int v4si __attribute__((vector_size(16)));v4sf ivf, ovf;v4si ivi, ovi;void testf (void){  ovf = ivf - ivf;}void testi (void){  ovi = ivi - ivi;}

⌨️ 快捷键说明

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