1 ; RUN: not --crash llc < %s -mtriple=riscv32 2>&1 | FileCheck %s
3 define i32 @get_invalid_reg() nounwind {
5 ; CHECK: Invalid register name "notareg".
6 %reg = call i32 @llvm.read_register.i32(metadata !0)
10 declare i32 @llvm.read_register.i32(metadata) nounwind