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>. REPOSITORY rL LLVM http://reviews.llvm.org/D7752 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/