Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/pr71984.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do run { target lp64 } } */ /* { dg-additional-options "-w -Wno-psabi" } */ typedef unsigned char v64u8 __attribute__((vector_size(64))); typedef unsigned long v64u64 __attribute__((vector_size(64))); typedef unsigned char u8; static u8 __attribute__ ((noinline, noclone)) foo (v64u64 v64u64_0) { return ((v64u8)(v64u64){0, v64u64_0[0]})[13]; } int main () { u8 x = foo((v64u64){0x0706050403020100UL}); #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ if (x != 5) __builtin_abort (); #endif return 0; }