aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/AArch64/atomic-oversize.ll
blob: 312c7e2a9bc3b910f32a4097d5e5d5145ccc771a (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc -mtriple=aarch64 < %s | FileCheck %s

; Atomics larger than 128-bit are unsupported, and emit libcalls.
define void @test(ptr %a) nounwind {
; CHECK-LABEL: test:
; CHECK: bl __atomic_load
; CHECK: bl __atomic_store
  %1 = load atomic i256, ptr %a seq_cst, align 32
  store atomic i256 %1, ptr %a seq_cst, align 32
  ret void
}