Skip to content

MASKL(0)/MASKR(0) return -1 instead of 0 #56706

@jeanPerier

Description

@jeanPerier

Repro:

  integer :: n
  n = 0
  ! Expects 0, gets -1
  print *, maskl(n)
  print *, maskr(n)
end

MASK intrinsic lowering was just implemented in 71ee357. The results in the zero case appears to be wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions