brintos

brintos / llvm-project-archived public Read only

0
0
Text · 821 B · 66f54d2 Raw
28 lines · plain
1# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \2# RUN:     | llvm-objdump -d -M no-aliases  - | FileCheck --check-prefix=CHECK-INST %s3 4# alpha and main are 8 byte alignment5# but the alpha function's size is 66# So assembler will insert a c.nop to make sure 8 byte alignment.7 8        .text9       .p2align        310       .type   alpha,@function11alpha:12# BB#0:13       c.addi  sp, -1614       c.lw    a0, 0(a0)15       c.lw    a1, 4(a0)16# CHECK-INST: c.nop17.Lfunc_end0:18       .size   alpha, .Lfunc_end0-alpha19                                        # -- End function20       .globl  main21       .p2align        322       .type   main,@function23main:                                   # @main24# BB#0:25.Lfunc_end1:26       .size   main, .Lfunc_end1-main27                                        # -- End function28