Skip to content

[SuperFileCheck] Consider regex helpers #82199

Description

@TIHan

At the moment in SuperFileCheck, we use FileCheck's syntax for matching registers using regexes:

// ARM64: cmp {{x[0-9]+}}, {{x[0-9]+}}
// X64: mov [[REG0:[a-z0-9]+]], [[REG1:[a-z0-9]+]]

This does hurt readability. We should consider creating built-in helpers at the SuperFileCheck level that expand common regexes to make this easier to write and read. An example of what this might look like:

// ARM64: cmp {{$(REGISTER)}}, {{$(REGISTER)}}
// X64: mov [[REG0:$(REGISTER)]], [[REG1:$(REGISTER)]]

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Feb 15, 2023
  2. removed
    untriagedNew issue has not been triaged by the area owner
    on Feb 15, 2023
  3. added this to the Future milestone on Feb 15, 2023
  4. dotnet-policy-service commented on Apr 13, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/runtime-infrastructure
    See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions