gcc/testsuite/g++.target/i386/pr118068.C
raw| 1 | // PR target/118068 |
| 2 | // { dg-do compile { target c++20 } } |
| 3 | // { dg-options "-O0 -mavx" } |
| 4 | |
| 5 | typedef float V __attribute__((vector_size (32))); |
| 6 | |
| 7 | consteval unsigned char |
| 8 | foo (int x) |
| 9 | { |
| 10 | return x; |
| 11 | } |
| 12 | |
| 13 | V |
| 14 | bar (V x, V y) |
| 15 | { |
| 16 | return __builtin_ia32_blendps256 (x, y, (int) foo (0x23)); |
| 17 | } |