Skip to content

3-component triple *-none-* is incorrectly normalized to *-none-unknown-* instead of *-unknown-none-* #89582

Closed
@wzssyqa

Description

@wzssyqa
$ clang --target=aarch64-none-elf --print-target-triple
aarch64-none-unknown-elf
$ clang --target=armv7m-none-eabi --print-target-triple
armv7m-none-unknown-eabi

The expected value is that none and unknown should be swapped.
Caused by std::string Triple::normalize(StringRef Str) in llvm/lib/TargetParser/Triple.cpp.

Metadata

Metadata

Assignees

Labels

llvmUmbrella label for LLVM issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions