Skip to content

[Flang] [AIX] Incorrect sqrt folding on AIX. #110682

@DanielCChen

Description

@DanielCChen

Consider the following code:

complex :: cv = sqrt((-2.0,0.0))
END

On AIX, it generates

    %cst = arith.constant -6.18172393E-8 : f32
    %cst_0 = arith.constant 1.41421354 : f32

On LoP, it generates

    %cst = arith.constant 0.000000e+00 : f32
    %cst_0 = arith.constant 1.41421354 : f32

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions