Skip to content

Add OMR port library to jit test environment #7942

@ehsankianifar

Description

@ehsankianifar

IBM Z (and maybe other platforms) need OMR port library to get the CPU version and determine capabilities. If the OMR port library does not exist, it default back to the minimum supported version which does not support many features and instructions. The OMR JIT unit tests harness initialize the OMR port library but doesn't add it to the test environment.As a result, many evaluators (e.g. vector opcodes) are not tested even though unit tests exist!
I tried adding the port library to the test environment but many tests on all platforms started to fail. I checked a few failures on Z and find some legit failures due to issues like test setup. To tackle this issue, I added another JitTest class with the OMR port library to have the option to drive tests from the new JitTest class. I used that in VectorTest on s390s and fixed the issue. It seem to be a good way to gradually migrate test without need to deal with a lot of changes and failures.
I opened a PR for the aforementioned changes #7912
I am opening this issue to discuss if we want this and if other platforms need this.
@0xdaryl @r30shah Please let me know your thoughts and tag anyone else that may be interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions