1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/MC/RISCV/cnop.s

28 lines
821 B
ArmAsm
Raw Normal View History

# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \
# RUN: | llvm-objdump -d -M no-aliases - | FileCheck --check-prefix=CHECK-INST %s
# alpha and main are 8 byte alignment
# but the alpha function's size is 6
# So assembler will insert a c.nop to make sure 8 byte alignment.
.text
.p2align 3
.type alpha,@function
alpha:
# BB#0:
c.addi sp, -16
c.lw a0, 0(a0)
c.lw a1, 4(a0)
# CHECK-INST: c.nop
.Lfunc_end0:
.size alpha, .Lfunc_end0-alpha
# -- End function
.globl main
.p2align 3
.type main,@function
main: # @main
# BB#0:
.Lfunc_end1:
.size main, .Lfunc_end1-main
# -- End function