cmp1.ssa 244 B

1234567891011121314151617
  1. # test cmp used in jnz as well as its result value
  2. export
  3. function w $test(w %c) {
  4. @start
  5. %cmp =w cultw 1, %c
  6. jnz %cmp, @yes, @no
  7. @yes
  8. %cmp =w copy 1
  9. @no
  10. ret %cmp
  11. }
  12. # >>> driver
  13. # int test(int);
  14. # int main(void) { return test(0); }
  15. # <<<