mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
1c1cc1c5ed
As announced here: http://lists.llvm.org/pipermail/llvm-dev/2019-April/131786.html Grouped option syntax (POSIX Utility Conventions) does not play well with -long-option A subsequent change will reject -long-option.
28 lines
821 B
ArmAsm
28 lines
821 B
ArmAsm
# 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
|