llvm-project/llvm/test/CodeGen/BPF/atomic-oversize.ll
Lucas Ste 6397e2f59e
Revert "[BPF] Allow libcalls behind a feature gate (#168442)" (#169733)
**Problem**

As mentioned in
https://github.com/llvm/llvm-project/pull/168442#pullrequestreview-3501502448
#168442, is not the right solution for the problem.

I'll follow @arsenm suggestions starting with
https://github.com/llvm/llvm-project/pull/169537 to properly allow safe
math operations and i128 support in BPF.

**Solution**

Revert #168442.
2025-12-01 11:19:39 -08:00

13 lines
363 B
LLVM

; RUN: llc -mtriple=bpf < %s | FileCheck %s
; XFAIL: *
; Doesn't currently build, with error 'only small returns supported'.
define void @test(ptr %a) nounwind {
; CHECK-LABEL: test:
; CHECK: call __atomic_load_16
; CHECK: call __atomic_store_16
%1 = load atomic i128, ptr %a monotonic, align 16
store atomic i128 %1, ptr %a monotonic, align 16
ret void
}