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