xref: /llvm-project/llvm/test/Other/print-slotindexes.ll (revision 27afc091e2c0caa954326129adb86987d1b41c91)
1; RUN: llc -print-after=slotindexes < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,SI
2; RUN: llc -print-after=slotindexes -print-slotindexes=false < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,NOSI
3; REQUIRES: default_triple
4define void @foo(){
5  ret void
6}
7
8;CHECK: IR Dump {{.*}}
9;CHECK: # Machine code for function foo{{.*}}
10;SI: {{[0-9]+}}B bb.0 (%ir-block.0)
11;NOSI: {{^}}bb.0 (%ir-block.0)
12
13