Closed tj90241 closed 9 years ago
This also has the unfortunate side-effect of breaking the varargs test.
Making gp_offset and fp_offset of struct __va_elem type int (instead of unsigned int) makes the tests pass; hmm...
Ahh, forgot about x86_64 zero-extension weirdness; fixed and passing tests again! Please review and pull.
You need to include a failing test case along with your fix.
Hm, thanks for the testcase request. I can only seem to make bc334b2 or 257c809 / 188b139 fail (but not both separately). I'll keep trying; I think it might be possible.
Seems like 257c809 / 188b139 are unnecessary. I'll close this pull request and open a new one with the minimal set of commits required.
get_load_inst needs to consider the signed-ness of the type that it's emitting a load instruction for. If the load is unsigned, emit zero-extended load instructions.