34 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc --mtriple=loongarch32 < %s | FileCheck %s --check-prefix=LA323; RUN: llc --mtriple=loongarch64 < %s | FileCheck %s --check-prefix=LA644 5declare void @llvm.prefetch(ptr, i32, i32, i32) nounwind6 7define dso_local void @prefetch_no_offset(ptr %ptr) nounwind {8; LA32-LABEL: prefetch_no_offset:9; LA32: # %bb.0: # %entry10; LA32-NEXT: ret11;12; LA64-LABEL: prefetch_no_offset:13; LA64: # %bb.0: # %entry14; LA64-NEXT: ret15entry:16 tail call void @llvm.prefetch(ptr %ptr, i32 0, i32 3, i32 0)17 ret void18}19 20 21define dso_local void @prefetch_with_offset(ptr %ptr) nounwind {22; LA32-LABEL: prefetch_with_offset:23; LA32: # %bb.0: # %entry24; LA32-NEXT: ret25;26; LA64-LABEL: prefetch_with_offset:27; LA64: # %bb.0: # %entry28; LA64-NEXT: ret29entry:30 %addr = getelementptr i8, ptr %ptr, i64 20031 tail call void @llvm.prefetch(ptr %addr, i32 0, i32 3, i32 0)32 ret void33}34