24 lines · plain
1; REQUIRES: x86-registered-target2; RUN: llc -print-after=slotindexes -stop-after=slotindexes -mtriple=x86_64-unknown-linux-gnu %s -filetype=asm -o %t 2>&1 | FileCheck %s3; RUN: llc -print-after=slotindexes -stop-after=slotindexes -mtriple=x86_64-unknown-windows-msvc %s -filetype=asm -o %t 2>&1 | FileCheck %s4 5define void @foo(ptr %p) {6 store i32 0, ptr %p7 call void @llvm.pseudoprobe(i64 5116412291814990879, i64 1, i32 0, i64 -1)8 store i32 0, ptr %p9 ret void10}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 511641229181499087918;CHECK: {{[0-9]+}}B MOV32mi19;CHECK: {{[0-9]+}}B RET 020 21declare void @llvm.pseudoprobe(i64, i64, i32, i64) #022 23attributes #0 = { inaccessiblememonly nounwind willreturn }24