- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
Disable part of nopiatest on interpreter #121147
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
base: main
Are you sure you want to change the base?
Disable part of nopiatest on interpreter #121147
Conversation
…etting a platform which doesn't support varargs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds platform detection to skip vararg tests (Test9 and Test10) on platforms that don't support varargs in the NoPIA type equivalence test suite.
Key Changes
- Added TestLibrary reference to the project for accessing PlatformDetection
- Added conditional execution logic to skip Test9 and Test10 when varargs are not supported
- Updated branch instructions from short form (br.s) to regular form (br) to accommodate longer jump distances
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description | 
|---|---|
| nopiatestil.ilproj | Added TestLibrary project reference for platform detection | 
| nopiatestil.il | Added assembly reference, conditional test execution for vararg tests, and updated branch instructions for correct jump distances | 
| call bool [TestLibrary]TestLibrary.PlatformDetection::get_IsVarArgSupported() | ||
| brfalse.s IL_SkipVarArgsTests_9 | ||
|  | ||
| call void NoPIATest.Program::Test9() | 
    
      
    
      Copilot
AI
    
    
    
      Oct 28, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent indentation: the call to Test9() at line 1049 has extra leading whitespace compared to the call to get_IsVarArgSupported() at line 1046. Both should have the same indentation level for IL code consistency.
| call void NoPIATest.Program::Test9() | |
| call void NoPIATest.Program::Test9() | 
| call void NoPIATest.Program::Test9() | ||
| IL_SkipVarArgsTests_9: nop | ||
| IL_00bb: br IL_00e5 | ||
| IL_00bd: | ||
| call bool [TestLibrary]TestLibrary.PlatformDetection::get_IsVarArgSupported() | ||
| brfalse.s IL_SkipVarArgsTests_10 | ||
| call void NoPIATest.Program::Test10() | 
    
      
    
      Copilot
AI
    
    
    
      Oct 28, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent indentation: the call to Test10() at line 1055 has extra leading whitespace compared to the call to get_IsVarArgSupported() at line 1053. Both should have the same indentation level for IL code consistency.
| call void NoPIATest.Program::Test9() | |
| IL_SkipVarArgsTests_9: nop | |
| IL_00bb: br IL_00e5 | |
| IL_00bd: | |
| call bool [TestLibrary]TestLibrary.PlatformDetection::get_IsVarArgSupported() | |
| brfalse.s IL_SkipVarArgsTests_10 | |
| call void NoPIATest.Program::Test10() | |
| call void NoPIATest.Program::Test9() | |
| IL_SkipVarArgsTests_9: nop | |
| IL_00bb: br IL_00e5 | |
| IL_00bd: | |
| call bool [TestLibrary]TestLibrary.PlatformDetection::get_IsVarArgSupported() | |
| brfalse.s IL_SkipVarArgsTests_10 | |
| call void NoPIATest.Program::Test10() | 
Modify nopiatest to not run its varargs component if the test is targetting a platform which doesn't support varargs