Skip to content

Implement ISO/IEC JTC1 SC22 WG14 N1169 fixed-point types and arithmetic #43241

@bevin-hansson

Description

@bevin-hansson
Bugzilla Link 43896
Version trunk
OS All
CC @bevin-hansson,@bjope,@PiJoules,@zygoloid

Extended Description

This is a ticket to track the remaining work required for supporting the ISO/IEC JTC1 SC22 WG14 N1169 fixed-point types and arithmetic.

Although this ticket is filed under Clang Frontend, the remaining work also includes patches to LLVM and other parts of Clang.

The currently estimated work that remains is:

LLVM:

  • Intrinsic for fixed-point [saturating] division
  • Possibly intrinsics for floating point/fixed-point conversion
  • Possibly intrinsic for saturating left shift

Clang:

  • Precision/limits macros (stdfix.h)
  • Constant evaluation
    ** Subtraction
    ** Multiplication
    ** Division
    ** Shift
    ** Floating point conversion
  • Compound assignment
  • Codegen
    ** Multiplication
    ** Division
    ** Shift
    ** Unary operations
    ** Floating point conversion

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions