xref: /llvm-project/llvm/test/CodeGen/RISCV/inline-option-directive.ll (revision 9e8ed3403c191ab9c4903e8eeb8f732ff8a43cb4)
1; RUN: llc -mtriple=riscv64 < %s -o - | FileCheck --check-prefixes=CHECK-ATTRIBUTES %s
2; RUN: llc -mtriple=riscv64 < %s -filetype=obj | llvm-readelf -h - \
3; RUN:     | FileCheck --check-prefixes=CHECK-EFLAGS %s
4
5; CHECK-ATTRIBUTES: .attribute      5, "rv64i2p1"
6; CHECK-EFLAGS: Flags: 0x0
7define void @test() {
8  tail call void asm ".option arch, +c", ""()
9  ret void
10}
11