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. */ 6 int ARCHnodes; 7 int *nodekind; 8 float *nodekindf; 9 void t()10t() 11 { 12 int i; 13 /* Redefine nodekind to be 1 for all surface nodes */ 14 15 for (i = 0; i < ARCHnodes; i++) { 16 nodekind[i] = (int) nodekindf[i]; 17 if (nodekind[i] == 3) 18 nodekind[i] = 1; 19 } 20 } 21