summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/T5149_cmm.cmm
blob: 567699c3eef9ca03833df5e539ec33d8867dabcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "Cmm.h"

g5149
{
    jump %ENTRY_CODE(Sp(0)) [R1];
}

/* This code is carefully arranged to tickle the bug reported in #5149 */
f5149 (W_ x, W_ y, D_ z)
{
    if (x > y) {
       goto a; /* this jump is shortcutted to g5149 */
    }  else {
       goto b;
    }

  a:
    jump g5149 [R1];
  b:
    R1 = TO_W_(%f2i32(z));
    jump %ENTRY_CODE(Sp(0)) [R1];
}