1# RUN: llvm-mc -triple=riscv32 -filetype=obj < %s | llvm-readobj --file-headers - | FileCheck -check-prefixes=CHECK-RVI %s 2# RUN: llvm-mc -triple=riscv64 -filetype=obj < %s | llvm-readobj --file-headers - | FileCheck -check-prefixes=CHECK-RVI %s 3# RUN: llvm-mc -triple=riscv32 -mattr=+c -filetype=obj < %s | llvm-readobj --file-headers - | FileCheck -check-prefixes=CHECK-RVIC %s 4# RUN: llvm-mc -triple=riscv64 -mattr=+c -filetype=obj < %s | llvm-readobj --file-headers - | FileCheck -check-prefixes=CHECK-RVIC %s 5# RUN: llvm-mc -triple=riscv32 -mattr=+e -filetype=obj < %s \ 6# RUN: | llvm-readobj --file-headers - \ 7# RUN: | FileCheck -check-prefix=CHECK-RVE %s 8 9# CHECK-RVI: Flags [ (0x0) 10# CHECK-RVI-NEXT: ] 11 12# CHECK-RVIC: Flags [ (0x1) 13# CHECK-RVIC-NEXT: EF_RISCV_RVC (0x1) 14# CHECK-RVIC-NEXT: ] 15 16# CHECK-RVE: Flags [ (0x8) 17# CHECK-RVE-NEXT: EF_RISCV_RVE (0x8) 18# CHECK-RVE-NEXT: ] 19 20nop 21