| 1 |
/* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 |
/* { dg-require-effective-target rv64 } */ |
| 3 |
/* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-Os" "-Oz" } } */ |
| 4 |
/* { dg-options "-march=rv64gc_xventanacondops -mtune=rocket -mbranch-cost=3 -fdump-rtl-ce1" } */ |
| 5 |
|
| 6 |
typedef unsigned int __attribute__ ((mode (DI))) int_t; |
| 7 |
|
| 8 |
int_t |
| 9 |
movdigtu (int_t w, int_t x, int_t y, int_t z) |
| 10 |
{ |
| 11 |
return w > x ? y : z; |
| 12 |
} |
| 13 |
|
| 14 |
/* Expect branched assembly like: |
| 15 |
|
| 16 |
bleu a0,a1,.L2 |
| 17 |
mv a3,a2 |
| 18 |
.L2: |
| 19 |
mv a0,a3 |
| 20 |
*/ |
| 21 |
|
| 22 |
/* { dg-final { scan-rtl-dump-not "Conversion succeeded on pass \[0-9\]+\\." "ce1" } } */ |
| 23 |
/* { dg-final { scan-rtl-dump-not "if-conversion succeeded through" "ce1" } } */ |
| 24 |
/* { dg-final { scan-assembler-times "\\s(?:bgeu|bgtu|bleu|bltu)\\s" 1 } } */ |
| 25 |
/* { dg-final { scan-assembler-not "\\s(?:sgtu|sltu)\\s" } } */ |
| 26 |
/* { dg-final { scan-assembler-not "\\svt\\.maskc\\s" } } */ |
| 27 |
/* { dg-final { scan-assembler-not "\\svt\\.maskcn\\s" } } */ |
| 28 |
/* { dg-final { scan-assembler-not "\\s(?:seqz|snez)\\s" } } */ |