| 1 |
/* PR target/117495 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-march=x86-64-v3 -fno-trapping-math" } */ |
| 4 |
/* { dg-final { scan-assembler-times "vcomisbf16" 2 } } */ |
| 5 |
|
| 6 |
__attribute__((target("avx10.2"))) |
| 7 |
int foo (int b, int x) |
| 8 |
{ |
| 9 |
return (__bf16) b < x; |
| 10 |
} |
| 11 |
|
| 12 |
int foo2 (int b, int x) |
| 13 |
{ |
| 14 |
return (__bf16) b < x; |
| 15 |
} |
| 16 |
|
| 17 |
__attribute__((target("avx10.2"))) |
| 18 |
int foo3 (__bf16 b, __bf16 x) |
| 19 |
{ |
| 20 |
return (__bf16) b < x; |
| 21 |
} |
| 22 |
|
| 23 |
int foo4 (__bf16 b, __bf16 x) |
| 24 |
{ |
| 25 |
return (__bf16) b < x; |
| 26 |
} |