blob: 2bcb74fa08c7cfce34cf3b917b80a2554338d3ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile } */
/* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "cmov\[^4\]" } } */
/* Verify that if conversion happends for memory references. */
int ARCHnodes;
int *nodekind;
float *nodekindf;
void
t()
{
int i;
/* Redefine nodekind to be 1 for all surface nodes */
for (i = 0; i < ARCHnodes; i++) {
nodekind[i] = (int) nodekindf[i];
if (nodekind[i] == 3)
nodekind[i] = 1;
}
}
|