Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving LLVM tests #10

Merged

Conversation

nikolaperic
Copy link
Collaborator

These changes fix the remaining 13 failing LLVM tests when running ninja check-llvm:

  • CodeGen/Mips/nanomips/bittestbranch.ll
  • CodeGen/Mips/nanomips/jumptable.ll
  • MC/Mips/cnmips/invalid.s
  • MC/Mips/macro-li-bad.s
  • MC/Mips/mips32r6/invalid.s
  • MC/Mips/micromips-invalid.s
  • MC/Mips/mips32r2/invalid.s
  • MC/Mips/micromips32r6/invalid.s
  • MC/Mips/mips64r6/invalid.s
  • MC/Mips/msa/invalid-64.s
  • MC/Mips/msa/invalid.s
  • tools/UpdateTestChecks/update_llc_test_checks/mips_generated_funcs.test
  • DebugInfo/Mips/delay-slot.ll

Copy link
Member

@farazs-github farazs-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments added. At least one change needs further inputs from @cme

llvm/utils/lit/lit/llvm/config.py Outdated Show resolved Hide resolved
llvm/lib/Target/Mips/NanoMipsInstrInfo.td Outdated Show resolved Hide resolved
llvm/test/CodeGen/Mips/nanomips/jumptable.ll Outdated Show resolved Hide resolved
llvm/lib/Target/Mips/MipsSEInstrInfo.cpp Outdated Show resolved Hide resolved
- Fix instructions conflicts between NanoMips and other Mips targets
  that caused tests from the MC/Mips group to fail
- Fix several tests
- Fix debug location of SP adjustment instruction that caused
  DebugInfo/Mips/delay-slot.ll test to fail
- Add 'nanomips' feature to llvm-lit config script so that
  tests can be marked as UNSUPPORTED for NanoMips target
Copy link
Member

@farazs-github farazs-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few more changes required.

I suggest you add more commits instead of force-pushing on the pull request. I'll squash-and-merge all the changes once approved to get a clean history.

Nikola Peric added 2 commits June 16, 2023 14:12
- Fix expected output for jumptable.ll and
  mips_generated_funcs.ll tests
- No longer need to mark a test ExtDebugInfo.cpp that
  needs object emitter as UNSUPPORTED
- Delete line left behind by a merge conflict in
  sanitize-coverage-old-pm.c test
@nikolaperic
Copy link
Collaborator Author

Added one more commit which fixes last two of failing clang tests.

Test clang/test/CodeGen/sanitize-coverage-old-pm.c now passes unexpectedly because it was marked as XFAIL. Was that the intention or maybe the test should have been marked as UNSUPPORTED? It was marked as XFAIL in this commit.

Copy link
Member

@farazs-github farazs-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change

clang/test/CodeGen/sanitize-coverage-old-pm.c Outdated Show resolved Hide resolved
Copy link
Member

@farazs-github farazs-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cme cme merged commit cf5782d into MediaTek-Labs:nanomips-llvm13-submission Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants