xref: /llvm-project/llvm/test/CodeGen/RISCV/verify-instr.mir (revision c09ed6a29e392e406623f7c4dc0a8240d2cbc9f2)
1# RUN: not --crash llc -mtriple=riscv32 -run-pass machineverifier %s -o - 2>&1 | FileCheck %s
2# RUN: not --crash llc -mtriple=riscv32 --passes='machine-function(verify)' %s -o - 2>&1 | FileCheck %s
3
4# CHECK: *** Bad machine code: Invalid immediate ***
5# CHECK: - instruction: $x2 = ADDI $x1, 10000
6
7---
8name: verify_instr
9body: |
10  bb.0:
11    $x2 = ADDI $x1, 10000
12...
13