[TTI] getTypeBasedIntrinsicInstrCost - add basic handling for strided load/store...
[llvm-project.git] / llvm / test / CodeGen / BPF / xaddd_v1.ll
blob4fd019a1eef72332919305e702cff5c549327816
1 ; RUN: not llc -mtriple=bpfel -mcpu=v1 -filetype=asm < %s
3 ; Source:
4 ; $ cat xaddd_v1.c
5 ; long test_fetch_add_64_ret(long *i) {
6 ;   return __sync_fetch_and_add(i, 10);
7 ; }
9 target triple = "bpf"
11 ; Function Attrs: mustprogress nofree norecurse nounwind willreturn memory(argmem: readwrite)
12 define dso_local i64 @test_fetch_add_64_ret(ptr nocapture noundef %i) local_unnamed_addr #0 {
13 entry:
14   %0 = atomicrmw add ptr %i, i64 10 seq_cst, align 8
15   ret i64 %0
18 attributes #0 = { mustprogress nofree norecurse nounwind willreturn memory(argmem: readwrite) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="v1" }
20 !llvm.module.flags = !{!0, !1}
21 !llvm.ident = !{!2}
23 !0 = !{i32 1, !"wchar_size", i32 4}
24 !1 = !{i32 7, !"frame-pointer", i32 2}
25 !2 = !{!"clang version 20.0.0git (git@github.com:yonghong-song/llvm-project.git 6f71e34e194dab5a52cb2211af575c6067e9e504)"}