1*ea222be0SSam Elliott// RUN: llvm-mc -triple aarch64 %s -o - | FileCheck %s --check-prefix=ASM 2*ea222be0SSam Elliott// RUN: llvm-mc -triple aarch64 -filetype obj %s -o - | \ 3*ea222be0SSam Elliott// RUN: llvm-objdump -dz - | FileCheck %s --check-prefix=OBJ 4*ea222be0SSam Elliott 5*ea222be0SSam Elliott// llvm.org/pr30955 - LLVM was handling `.balign <alignment>, 0` strangely on 6*ea222be0SSam Elliott// non-x86 targets. 7*ea222be0SSam Elliott 8*ea222be0SSam Elliott .text 9*ea222be0SSam Elliott 10*ea222be0SSam Elliott// ASM: add x14, x14, #1 11*ea222be0SSam Elliott// OBJ: 910005ce add x14, x14, #0x1 12*ea222be0SSam Elliott add x14, x14, 0x1 13*ea222be0SSam Elliott 14*ea222be0SSam Elliott// ASM: .p2align 4, 0x0 15*ea222be0SSam Elliott// OBJ-NEXT: 00000000 udf #0x0 16*ea222be0SSam Elliott// OBJ-NEXT: 00000000 udf #0x0 17*ea222be0SSam Elliott// OBJ-NEXT: 00000000 udf #0x0 18*ea222be0SSam Elliott .balign 0x10, 0 19*ea222be0SSam Elliott 20*ea222be0SSam Elliott// ASM: add x14, x14, #1 21*ea222be0SSam Elliott// OBJ-NEXT: 910005ce add x14, x14, #0x1 22*ea222be0SSam Elliott add x14, x14, 0x1 23