[SLP]Reduce number of alternate instruction, where possible
[llvm-project.git] / llvm / test / MC / LoongArch / Misc / aligned-nops.s
blob8554b4998223a2e30aa9c79fa3f79099c9ea74da
1 # RUN: llvm-mc --filetype=obj --triple=loongarch64 < %s \
2 # RUN: | llvm-objdump -d - | FileCheck %s
4 # func1 and func2 are 8 byte alignment but the func1's size is 4.
5 # So assembler will insert a nop to make sure 8 byte alignment.
7 .text
9 .p2align 3
10 func1:
11 addi.d $sp, $sp, -16
12 # CHECK: addi.d $sp, $sp, -16
13 # CHECK-NEXT: nop
14 .p2align 3
15 func2: