22 lines · plain
1; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \2; RUN: | FileCheck %s -check-prefix=RV32I3; RUN: llc -mtriple=riscv32 -mattr=+c -verify-machineinstrs < %s \4; RUN: | FileCheck %s -check-prefix=RV32C5; RUN: llc -filetype=obj -mtriple=riscv32 < %s -o %t6; RUN: llvm-readelf -S %t | FileCheck %s --check-prefixes=SEC,SEC-I7; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+c < %s -o %t8; RUN: llvm-readelf -S %t | FileCheck %s --check-prefixes=SEC,SEC-C9 10; SEC: Name Type Address Off Size ES Flg Lk Inf Al11; SEC-I: .text PROGBITS 00000000 [[#%x,]] [[#%x,]] 00 AX 0 0 412; SEC-C: .text PROGBITS 00000000 [[#%x,]] [[#%x,]] 00 AX 0 0 213 14define void @foo() {15;RV32I: .p2align 216;RV32I: foo:17;RV32C: .p2align 118;RV32C: foo:19entry:20 ret void21}22