A test for patch D4978
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Hi Paweł,
Is this JIT specific? What platforms are you seeing problems on? I suspect it should just be a CodeGen test for those platforms.
- Lang.
This is a non-JIT-specific codegen bug (see the linked patch). I only noticed it on X86, but I suspect other platforms may have similar semantics, so it may be an issue there anyway. The fix certainly isn't architecture specific, so it might make sense to have this run on all platforms.
I agree with @loladiro, it looks like generic CodeGen bug. Placing it in ExecutionEngine/MCJIT wasn't the best idea, but I've found that lli based test are there. Should I move it to some better place? Like test/CodeGen/Generic?
It's tricky. This may be a generic codegen bug, but it will manifest differently on different platforms. I'd be inclined to pick a popular target where it's currently broken (X86?), fix it there, then add the test to test/CodeGen/<Target>.
This test is a quite different from other Target tests because it checks runtime result. Maybe we should come back to that when the actual bug is fixed.
I'd like to include this test case with the bugfix. Can we decide on where it should live?
I would call it a "runtime" test. But I haven't found similar tests in test/ directory.
LGTM. If you want, you can combine this with the fix and commit. Otherwise I'll get to it later today or tomorrow.