28 lines · plain
1; RUN: not llc -mtriple=bpfel -mcpu=v1 -filetype=asm < %s2;3; Source:4; $ cat atomics_sub64_relaxed_v1.c5; #include <stdatomic.h>6;7; long test_fetch_sub_64_ret(long _Atomic *i) {8; return __c11_atomic_fetch_sub(i, 10, memory_order_relaxed);9; }10 11target triple = "bpf"12 13; Function Attrs: mustprogress nofree norecurse nounwind willreturn memory(argmem: readwrite)14define dso_local i64 @test_fetch_sub_64_ret(ptr nocapture noundef %i) local_unnamed_addr #0 {15entry:16 %0 = atomicrmw sub ptr %i, i64 10 monotonic, align 817 ret i64 %018}19 20attributes #0 = { mustprogress nofree norecurse nounwind willreturn memory(argmem: readwrite) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="v1" }21 22!llvm.module.flags = !{!0, !1}23!llvm.ident = !{!2}24 25!0 = !{i32 1, !"wchar_size", i32 4}26!1 = !{i32 7, !"frame-pointer", i32 2}27!2 = !{!"clang version 20.0.0git (git@github.com:yonghong-song/llvm-project.git 6f71e34e194dab5a52cb2211af575c6067e9e504)"}28