**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.
13 lines
363 B
LLVM
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
|
|
}
|