Files
clang-p2996/llvm/test/CodeGen/AArch64/p2align-zero-fillvalue.ll
Stephen Long 525af9f8eb [MC] Omit fill value if it's zero when emitting code alignment
Previously, we were generating zeroes when generating code alignments for AArch64, but now we should omit the value and let the assembler choose to generate nops or zeroes.

Reviewed By: efriedma, MaskRay

Differential Revision: https://reviews.llvm.org/D132508
2022-08-25 10:07:33 -07:00

9 lines
222 B
LLVM

; RUN: llc -mtriple=aarch64 < %s -o - | FileCheck %s
%struct.A = type { i8, i32 }
@foo = dso_local global %struct.A zeroinitializer, align 4
; CHECK: .bss
; CHECK-NEXT: .globl foo
; CHECK-NEXT: .p2align 2, 0x0{{$}}