1 # REQUIRES: riscv-registered-target
2 # RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir --delta-passes=instructions -mtriple=riscv64-- --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
3 # RUN: FileCheck --check-prefix=RESULT %s < %t
5 # CHECK-INTERESTINGNESS: ADDW
9 # RESULT-NEXT: - { id: 0, offset: 16, size: 16, alignment: 8 }
11 # RESULT: machineFunctionInfo:
12 # RESULT-NEXT: varArgsFrameIndex: 4
13 # RESULT-NEXT: varArgsSaveSize: 12
15 # RESULT: $x10 = ADDW %stack.0, renamable $x10
17 define i32 @func(i32 %arg) {
23 # Note the frame index value changes during printing/parsing, not the
27 tracksRegLiveness: true
32 - { id: 4, offset: 16, size: 16, alignment: 8 }
38 renamable $x10 = ADDW %stack.4, renamable $x10
39 renamable $x10 = ADDIW killed renamable $x10, -4
40 PseudoRET implicit $x10