1 ; RUN: llc -mtriple=riscv32 -mattr=-relax -filetype=obj < %s \
2 ; RUN: | llvm-objdump -d -r - | FileCheck %s
4 ; This test demonstrates that .option relax has no effect on codegen
5 ; when emitting an ELF directly.
9 define i32 @bar(i32 %a) nounwind {
12 ; CHECK-NOT: R_RISCV_RELAX
13 tail call void asm sideeffect ".option relax", ""()
14 %1 = call i32 @foo(i32 %a)