Skip to content

Assembler for arm64 ignores padding value of 0 for .balign directive #30303

@llvmbot

Description

@llvmbot
Bugzilla Link 30955
Version 3.8
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

When a specific padding value of 0 is passed to a .balign directive in an executable area, the value is ignored and NOP instructions are inserted instead.

The value is respected for the .balignw .balignl variants. Further, if a non-zero value is specified, it's respected.

Shouldn't an explicit 0 padding value be respected for .balign?

Reproducer:

// Contents of foo.S
.section TestSection, "x"
  add x14, x14, 0x1
  .balign 0x10, 0
  add x14, x14, 0x1
.end

Command line:

clang -target arm64-unknown-linux -c -o foo.o foo.S

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaconfirmedVerified by a second partyllvm:mcMachine (object) code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions