2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / scc-3.c
blobeb9d575f061728901aa26a5ac6b6d816f487a5f2
1 /* { dg-do compile { target mips16_attribute } } */
2 /* { dg-mips-options "-O -mabi=o64" } */
3 /* { dg-add-options mips16_attribute } */
5 /* { dg-final { scan-assembler-not "and\t\|andi\t\|ext\t\|sll\t\|srl\t" } } */
6 /* { dg-final { scan-assembler-times "slt\t\|sltu\t" 8 } } */
9 #define TEST(N, LHS, REL, RHS) \
10 MIPS16 long long w##N (int a, int b) {return LHS REL RHS;} \
11 MIPS16 int n##N (long long a, long long b) {return LHS REL RHS;} \
13 TEST (eq, a, ==, 0);
15 TEST (gt, a, >, b);
17 TEST (lt, a, <, b);
18 TEST (le, a, <=, 11);