Commit 3650ff3
authored
Fix interpreter jmp to pinvoke (#121329)
The interpreter compiler ignores tail call prefix for tail calls (and
jmp) to pinvokes that are not marshalled. But it is not injecting "ret"
IR opcode after the call returns, which results in BADCODE reported by
the compiler.
There are several coreclr tests in the JIT/jit64/mcc/interop that fail
due to that.
This change adds injecting proper form of "ret" IR opcode after such
calls.1 parent 5075f72 commit 3650ff3
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4183 | 4183 | | |
4184 | 4184 | | |
4185 | 4185 | | |
| 4186 | + | |
4186 | 4187 | | |
4187 | 4188 | | |
4188 | 4189 | | |
| |||
4393 | 4394 | | |
4394 | 4395 | | |
4395 | 4396 | | |
| 4397 | + | |
4396 | 4398 | | |
| 4399 | + | |
| 4400 | + | |
| 4401 | + | |
4397 | 4402 | | |
4398 | 4403 | | |
4399 | 4404 | | |
| |||
4530 | 4535 | | |
4531 | 4536 | | |
4532 | 4537 | | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
4533 | 4560 | | |
4534 | 4561 | | |
4535 | 4562 | | |
| |||
0 commit comments