Debian Codegraph @

gcc/testsuite/g++.dg/pr123575.C

raw
1 // { dg-do compile }
2 // { dg-options "-O -Wno-psabi" }
3
4 typedef int __attribute__((vector_size(sizeof(int)*2))) v2i;
5 typedef long __attribute__((vector_size(sizeof(long)*2))) v2l;
6
7 v2l f(v2i a)
8 {
9 v2l t = __builtin_convertvector(a, v2l);
10 t = t > 0 ? t : -t;
11 return t;
12 }