blob: f70525342a8562cc3f432daf966fb72b1ad21762 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do compile { target { rv64 } } } */
/* { dg-additional-options "-march=rv64gc_zicond -mabi=lp64d -mbranch-cost=4" } */
/* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */
long foo1 (long c) { return c < 0 ? 1 : -1; }
long foo2 (long c) { return c >= 0 ? -1 : 1; }
/* We don't support 4->3 splitters, so this fails. We could perhaps
try to catch it in the expander as a special case rather than waiting
for combine. */
/* { dg-final { scan-assembler-times {srai\t} 2 { xfail *-*-* } } } */
/* { dg-final { scan-assembler-times {ori\t} 2 { xfail *-*-* } } } */
/* { dg-final { scan-assembler-times {not\t} 2 { xfail *-*-* } } } */
|