HomeFreeBSD

[PowerPC64] Hide dssall instruction from llvm assembler

Description

[PowerPC64] Hide dssall instruction from llvm assembler

When doing a build for a modern CPUTYPE, llvm will throw errors if obsolete
instructions are used, even if they will never run due to runtime checks.

Hiding the dssall instruction from the assembler fixes kernel build when
overriding CPUTYPE, without having any effect on the generated binary.

This has been in my local tree for over a year and is well tested across
a variety of machines.

Sponsored by: Tag1 Consulting, Inc.

Details

Provenance
bdragonAuthored on Sep 8 2020, 10:59 PM
Parents
rGd20ae9cca224: [PowerPC] Add root_pic assertion.
Branches
Unknown
Tags
Unknown

Event Timeline