gcc/testsuite/gcc.target/s390/vector/vec-cmpge.c
raw| 1 | /* Check that vec_sel absorbs a negation generated by vec_cmpge. */ |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-O3 -mzarch -march=z13" } */ |
| 5 | |
| 6 | typedef __attribute__((vector_size(16))) unsigned char uv16qi; |
| 7 | |
| 8 | #include <vecintrin.h> |
| 9 | |
| 10 | void f(char *res, uv16qi ctrl) |
| 11 | { |
| 12 | uv16qi a = vec_splat_u8(0xfe); |
| 13 | uv16qi b = vec_splat_u8(0x80); |
| 14 | uv16qi mask = vec_cmpge(ctrl, b); |
| 15 | *(uv16qi *)res = vec_sel(a, b, mask); |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-not "vno\t" } } */ |