Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr110170-3.c

raw
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -fno-if-conversion -fno-if-conversion2" } */
3 /* { dg-final { scan-assembler-not {(?n)movq.*r} } } */
4
5 void __cond_swap(double* __x, double* __y) {
6 _Bool __r = (*__x < *__y);
7 double __tmp = __r ? *__x : *__y;
8 *__y = __r ? *__y : *__x;
9 *__x = __tmp;
10 }
11