* Emits an instruction to load the given value into the corresponding * argno register. */
| 440 | * argno register. |
| 441 | */ |
| 442 | static void sendLoadValueMetadata(FILE *out, intptr_t value, int regno) |
| 443 | { |
| 444 | if (value >= INT32_MIN && value <= INT32_MAX) |
| 445 | sendSExtFromI32ToR64(out, value, regno); |
| 446 | else if (value >= 0 && value <= UINT32_MAX) |
| 447 | sendZExtFromI32ToR64(out, value, regno); |
| 448 | else |
| 449 | sendMovFromI64ToR64(out, value, regno); |
| 450 | } |
| 451 | |
| 452 | /* |
| 453 | * Emits an instruction to load a pointer into the corresponding argno |
no test coverage detected