You copied the Doc URL to your clipboard.

AArch64 Target selection directives

The AArch64 target selection directives specify code generation parameters for AArch64 targets.

Syntax

.arch arch_name[+[no]extension]…
.cpu cpu_name[+[no]extension]…

Description

.arch

The .arch directive changes the architecture that the assembler is generating instructions for.

The arch_name argument accepts the same names as the -march option, and accepts certain optional architecture extensions (extension) separated by +. The extension can be prefixed with no to disable it.

.cpu

The .cpu directive changes the CPU that the assembler is generating instructions for.

The cpu_name argument accepts the same names as the -mcpu option, and accepts certain optional architecture extensions (extension) separated by +. The extension can be prefixed with no to disable it.

extension

Optional architecture extensions. The accepted architecture extensions are:

  • crc
  • crypto
  • fp
  • ras
  • simd

Examples

  // Generate code for Armv8-A without a floating-point unit. The assembler
  // will report an error if any instructions following this directive require
  // the floating-point unit.
  .arch armv8-a+nofp
Was this page helpful? Yes No