1; RUN: llc < %s -x86-discriminate-memops -prefetch-hints-file=%S/insert-prefetch-invalid-instr.afdo | FileCheck %s 2; ModuleID = 'prefetch.cc' 3source_filename = "prefetch.cc" 4target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 5target triple = "x86_64-unknown-linux-gnu" 6 7; Function Attrs: norecurse nounwind uwtable 8define dso_local i32 @main() local_unnamed_addr #0 !dbg !7 { 9entry: 10 tail call void @llvm.prefetch(i8* inttoptr (i64 291 to i8*), i32 0, i32 0, i32 1), !dbg !9 11 tail call void @llvm.x86.avx512.gatherpf.dpd.512(i8 97, <8 x i32> undef, i8* null, i32 1, i32 2), !dbg !10 12 ret i32 291, !dbg !11 13} 14 15; Function Attrs: inaccessiblemem_or_argmemonly nounwind 16declare void @llvm.prefetch(i8* nocapture readonly, i32, i32, i32) #1 17 18; Function Attrs: argmemonly nounwind 19declare void @llvm.x86.avx512.gatherpf.dpd.512(i8, <8 x i32>, i8*, i32, i32) #2 20 21attributes #0 = {"target-cpu"="x86-64" "target-features"="+avx512pf,+sse4.2,+ssse3"} 22attributes #1 = { inaccessiblemem_or_argmemonly nounwind } 23attributes #2 = { argmemonly nounwind } 24 25!llvm.dbg.cu = !{!0} 26!llvm.module.flags = !{!3, !4, !5} 27!llvm.ident = !{!6} 28 29!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly, enums: !2, debugInfoForProfiling: true) 30!1 = !DIFile(filename: "prefetch.cc", directory: "/tmp") 31!2 = !{} 32!3 = !{i32 2, !"Dwarf Version", i32 4} 33!4 = !{i32 2, !"Debug Info Version", i32 3} 34!5 = !{i32 1, !"wchar_size", i32 4} 35!6 = !{!"clang version 7.0.0 (trunk 327078) (llvm/trunk 327086)"} 36!7 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 8, type: !8, isLocal: false, isDefinition: true, scopeLine: 8, flags: DIFlagPrototyped, isOptimized: true, unit: !0) 37!8 = !DISubroutineType(types: !2) 38!9 = !DILocation(line: 12, column: 3, scope: !7) 39!10 = !DILocation(line: 14, column: 3, scope: !7) 40!11 = !DILocation(line: 15, column: 3, scope: !7) 41 42;CHECK-LABEL: main: 43;CHECK: # %bb.0: 44;CHECK: prefetchnta 291 45;CHECK-NOT: prefetchnta 42(%rax,%ymm0) 46;CHECK: vgatherpf1dpd (%rax,%ymm0) {%k1} 47