philv.ssa 566 B

12345678910111213141516171819202122232425262728293031323334
  1. # regression test for 1f4ff634
  2. # warning! headaches can occur
  3. # when trying to figure out what
  4. # the test is doing!
  5. export
  6. function w $t0() {
  7. @start
  8. @loop
  9. %x0 =w phi @start 256, @loop %y0
  10. %y0 =w phi @start 128, @loop %y1
  11. %y1 =w shr %x0, 1
  12. jnz %y1, @loop, @end
  13. @end
  14. ret %x0
  15. }
  16. export
  17. function w $t1() { # swapped phis
  18. @start
  19. @loop
  20. %y0 =w phi @start 128, @loop %y1
  21. %x0 =w phi @start 256, @loop %y0
  22. %y1 =w shr %x0, 1
  23. jnz %y1, @loop, @end
  24. @end
  25. ret %x0
  26. }
  27. # >>> driver
  28. # extern int t0(void), t1(void);
  29. # int main() { return !(t0() == 1 && t1() == 1);}
  30. # <<<