1 ; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
2 ; RUN: | FileCheck %s -check-prefix=RV32I
3 ; RUN: llc -mtriple=riscv32 -mattr=+c -verify-machineinstrs < %s \
4 ; RUN: | FileCheck %s -check-prefix=RV32C
5 ; RUN: llc -filetype=obj -mtriple=riscv32 < %s -o %t
6 ; RUN: llvm-readelf -S %t | FileCheck %s --check-prefixes=SEC,SEC-I
7 ; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+c < %s -o %t
8 ; RUN: llvm-readelf -S %t | FileCheck %s --check-prefixes=SEC,SEC-C
10 ; SEC: Name Type Address Off Size ES Flg Lk Inf Al
11 ; SEC-I: .text PROGBITS 00000000 [[#%x,]] [[#%x,]] 00 AX 0 0 4
12 ; SEC-C: .text PROGBITS 00000000 [[#%x,]] [[#%x,]] 00 AX 0 0 2