Skip to content

Discrepancy in codegen for binary operations between master branch and 3.3.0 #6471

Description

@hoshiumiarata

MRuby's master branch is generating the SSEND opcode for binary operations instead of the corresponding opcode when the left-hand side is self.

For example:

self < 5

The master branch generates:

    1 000 LOADI_5       R3      (5)
    1 002 SSEND         R2      :<      n=1

while mruby 3.3.0 generates:

    1 000 LOADSELF      R2      (R0)
    1 002 LOADI_5       R3      (5)
    1 004 LT            R2      R3

Is this intentional?

Activity

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

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