diff --git a/gcc/testsuite/gcc.target/sparc/pr105573.c b/gcc/testsuite/gcc.target/sparc/pr105573.c new file mode 100644 index 00000000000..14043a5fdad --- /dev/null +++ b/gcc/testsuite/gcc.target/sparc/pr105573.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -mvis3" } */ + +int *UINT_sign_args, UINT_sign_steps; +int *UINT_sign_ip1; + +void UINT_sign() { + char *op1 = (char*) UINT_sign_args; + int os1 = UINT_sign_steps, i; + for (; i; i++, op1 += os1) { + unsigned in = *(unsigned *)UINT_sign_ip1; + int *out = (int*) op1; + *out = in > 0; + } +}