Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Right shift is zero-fill in Dart #446

Open
@vsmenon

Description

@vsmenon

DDC propagates the sign on a right shift. This appears to violate Dart semantics.

The following prints 1 on the VM / dart2js and -1 in DDC.

void main() {
  var x = 0x80000000;
  print(x >> 31);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions