niosHD accepted this revision. niosHD added a comment. Great, thank you Ana for confirming that this patch fixes the problem. Do you plan to add the test to the test suite or should I submit a patch after this one has landed? https://reviews.llvm.org/D41503