1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-- -mattr=+prefetchi | FileCheck %s
3 ; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s --check-prefix=NOPREFETCHI
5 define dso_local void @t(ptr %ptr) nounwind {
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: prefetchit1 (%rdi)
9 ; CHECK-NEXT: prefetchit0 (%rdi)
10 ; CHECK-NEXT: prefetchit1 t(%rip)
11 ; CHECK-NEXT: prefetchit0 ext(%rip)
14 ; NOPREFETCHI-LABEL: t:
15 ; NOPREFETCHI: # %bb.0: # %entry
16 ; NOPREFETCHI-NEXT: retq
18 tail call void @llvm.prefetch(ptr %ptr, i32 0, i32 2, i32 0)
19 tail call void @llvm.prefetch(ptr %ptr, i32 0, i32 3, i32 0)
20 tail call void @llvm.prefetch(ptr @t, i32 0, i32 2, i32 0)
21 tail call void @llvm.prefetch(ptr @ext, i32 0, i32 3, i32 0)
25 declare dso_local void @ext() nounwind
26 declare void @llvm.prefetch(ptr, i32, i32, i32) nounwind