diff --git a/llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll b/llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll --- a/llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll +++ b/llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll @@ -34,3 +34,11 @@ entry: ret void } + +; CHECK: .option push +define void @test5() "target-features"="+unaligned-scalar-mem" { +; CHECK-LABEL: test5 +; CHECK: .option pop +entry: + ret void +}