aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/pr101922.c
blob: 00a6e495ba253dbbfeffea498785c908a4ffd3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR target/101922
   This was triggering an assembler error with -O3 -mmsa -mloongson-mmi. */

/* { dg-do assemble } */
/* { dg-options "-mmsa -mloongson-mmi" } */

typedef __INT8_TYPE__ i8;
typedef __INT32_TYPE__ i32;

i8 d[16];

i32 f(i32 x) {
  int i;
  for (i = 0; i < 16; i++) {
    i32 t = (i32) d[i] >> 31;
    x &= t;
  }
  return x;
}