Files
clang-p2996/llvm/test/CodeGen/X86/atomic-oversize.ll
James Y Knight ed4194bb8d [X86] Set MaxAtomicSizeInBitsSupported. (#75112)
This will result in larger atomic operations getting expanded to
`__atomic_*` libcalls via AtomicExpandPass, which matches what Clang
already does in the frontend.
2023-12-12 08:16:55 -05:00

12 lines
355 B
LLVM

; RUN: llc -mtriple=x86_64 -mattr=cx16 < %s | FileCheck %s
; Atomics larger than 128-bit are unsupported, and emit libcalls.
define void @test(ptr %a) nounwind {
; CHECK-LABEL: test:
; CHECK: callq __atomic_load
; CHECK: callq __atomic_store
%1 = load atomic i256, ptr %a seq_cst, align 32
store atomic i256 %1, ptr %a seq_cst, align 32
ret void
}