xref: /llvm-project/llvm/test/MC/RISCV/align-option-relax.s (revision d09d297c5d28bd0af4dd8bf3ca66d8dbbd196d9d)
1# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \
2# RUN:     | llvm-readobj -r - | FileCheck %s
3
4# Check that .option relax overrides -mno-relax and enables R_RISCV_ALIGN
5# relocations.
6# CHECK: R_RISCV_ALIGN
7	.option relax
8	.align 4
9