Skip to content

[NativeAOT] Disable unsupported scenario tests in hardware intrinsics test template #110293

Open
@jkotas

Description

@jkotas

Illegal use of hardware intrinsics does not throw catchable PlatformNotSupportedExceptions in NativeAOT. Instead, NativeAOT failfasts in this situation for performance (and security) reasons.

Tests that expect catchable PlatformNotSupportedExceptions to be thrown for invalid use of hardware intrinsics should be updated to account for this behavior:

  • ThrowsPlatformNotSupportedExceptionForIllegalInstruction to PlatformDetection.cs
  • Condition tests that expect catchable PlatformNotSupportedException to be thrown for illegal instructions on this property

See #110250 for more context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions