Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/pr71984.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +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; }