[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git] / llvm / test / CodeGen / X86 / xray-empty-firstmbb.mir
blobdf5dc7b28ec1a335b10fbe36130fd2ac4237f72e
1 # RUN: llc -run-pass=xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
3 # Make sure we can handle empty first basic blocks.
5 --- |
7   define i32 @foo() noinline uwtable "xray-instruction-threshold"="0" {
8   entry:
9     unreachable
10   }
12 ...
14 ---
15 name: foo
16 tracksRegLiveness: true
17 liveins:
18   - { reg: '$edi'}
19 body:            |
20   bb.0.entry:
21     liveins: $edi
22     ; CHECK-NOT: PATCHABLE_FUNCTION_ENTER
23 ...