| 1 |
; REQUIRES: x86-registered-target |
| 2 |
; RUN: llc -print-after=slotindexes -stop-after=slotindexes -mtriple=x86_64-unknown-linux-gnu %s -filetype=asm -o %t 2>&1 | FileCheck %s |
| 3 |
; RUN: llc -print-after=slotindexes -stop-after=slotindexes -mtriple=x86_64-unknown-windows-msvc %s -filetype=asm -o %t 2>&1 | FileCheck %s |
| 4 |
|
| 5 |
define void @foo(ptr %p) { |
| 6 |
store i32 0, ptr %p |
| 7 |
call void @llvm.pseudoprobe(i64 5116412291814990879, i64 1, i32 0, i64 -1) |
| 8 |
store i32 0, ptr %p |
| 9 |
ret void |
| 10 |
} |
| 11 |
|
| 12 |
;; Check the pseudo probe instruction isn't assigned a slot index. |
| 13 |
;CHECK: IR Dump {{.*}} |
| 14 |
;CHECK: # Machine code for function foo{{.*}} |
| 15 |
;CHECK: {{[0-9]+}}B bb.0 (%ir-block.0) |
| 16 |
;CHECK: {{[0-9]+}}B %0:gr64 = COPY killed $r{{di|cx}} |
| 17 |
;CHECK: {{^}} PSEUDO_PROBE 5116412291814990879 |
| 18 |
;CHECK: {{[0-9]+}}B MOV32mi |
| 19 |
;CHECK: {{[0-9]+}}B RET 0 |
| 20 |
|
| 21 |
declare void @llvm.pseudoprobe(i64, i64, i32, i64) #0 |
| 22 |
|
| 23 |
attributes #0 = { inaccessiblememonly nounwind willreturn } |