On Jan 10 2020, Stam Markianos-Wright wrote: > diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c > b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c > new file mode 100644 > index 00000000000..16669dcf009 > --- /dev/null > +++ b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c > @@ -0,0 +1,252 @@ > +/* { dg-do assemble { target { arm*-*-* } } } */ > +/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */ > +/* { dg-require-effective-target arm_v8_2a_fp16_neon_ok } */ > +/* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */ > +/* { dg-additional-options "-march=armv8.6-a+bf16+fp16 -Wno-pedantic -O3 > --save-temps" } */ > + > +#include <arm_neon.h> > + > +bfloat16_t glob_bfloat; > +bfloat16x8_t glob_bfloat_vec; > + > +float32x4_t is_a_float_vec; > + > +float16x8_t *float_ptr; > +float16x8_t is_a_float16_vec; > + > +int32x4_t is_an_int_vec; > +int64x2_t is_a_long_int_pair; > +int16x8_t is_a_short_vec; > + > +int is_an_int; > +short is_a_short_int; > +float is_a_float; > +float is_a_float16; > +double is_a_double; > + > +bfloat16x8_t foo3 (void) { return (bfloat16x8_t) > 0x12345678123456781234567812345678; } > + /* { dg-error {integer constant is too large for its type} "" {target > *-*-*} 27 } */ > + /* { dg-error {cannot convert a value of type 'long long int' to vector > type '__simd128_bfloat16_t' which has different size} "" {target *-*-*} 27 } > */
Duplicate test name. Don't use absolute line numbers. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."