Skip to content

Multiple Mono Mini Targets and Mono Interpreter missing support for float->nint casting. #46820

Closed

Description

@jkoritzinsky

Description

Mono's Mini JIT compiler on multiple platforms and the Mono Interpreter both lack support for casting a float value to a native int storage.

Configuration

  • .NET 6 master (found in PR)
  • Mono Interpreter
  • Mono Mini targeting Linux arm64
  • Based on a cursory look through source, also effects Mini targetting ARM32 and LLVM

Regression?

I don't believe so.

Other information

For the interpreter, this shows up as the following assert:

  • Assertion: should not be reached at /Users/runner/work/1/s/src/mono/mono/mini/interp/transform.c:5065

For JIT, this is the message that shows up. The assert initially fired from /__w/1/s/src/mono/mono/mini/mini-codegen.c:1251

"Opcode 'r4_conv_to_i' missing from machine description file."

Discovered in #46401 where a test casts a float value to the C# nint type.

Activity

  1. lambdageek commented on Jan 12, 2021

    @lambdageek
    Member
  2. added this to the 6.0.0 milestone on Jan 12, 2021
  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Jan 12, 2021
  4. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Mar 10, 2021
  5. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Mar 10, 2021
  6. ghost locked as resolved and limited conversation to collaborators on Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions