Files
clang-p2996/llvm/test/CodeGen/AMDGPU/atomic-oversize.ll
James Y Knight 137f785fa6 [AMDGPU] Set MaxAtomicSizeInBitsSupported. (#75185)
This will result in larger atomic operations getting expanded to
`__atomic_*` libcalls via AtomicExpandPass, which matches what Clang
already does in the frontend.

While AMDGPU currently disables the use of all libcalls, I've changed it
to instead disable all of them _except_ the atomic ones. Those are
already be emitted by the Clang frontend, and enabling them in the
backend allows the same behavior there.
2023-12-18 16:51:06 -05:00

11 lines
317 B
LLVM

; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck %s
define void @test(ptr %a) nounwind {
; CHECK-LABEL: test:
; CHECK: __atomic_load_16
; CHECK: __atomic_store_16
%1 = load atomic i128, ptr %a seq_cst, align 16
store atomic i128 %1, ptr %a seq_cst, align 16
ret void
}