[testsuite] Backport test42 changes

Backport changes which remove fragile asm
See https://github.com/D-Programming-Language/dmd/pull/1809