xref: /llvm-project/llvm/test/CodeGen/Lanai/atomic-oversize.ll (revision b856e77b2df212d740bfedc984572d812d07ecc8)
1*b856e77bSJames Y Knight; RUN: llc -mtriple=lanai < %s | FileCheck %s
2*b856e77bSJames Y Knight
3*b856e77bSJames Y Knight; Native atomics are unsupported, so all are oversize.
4*b856e77bSJames Y Knightdefine void @test(ptr %a) nounwind {
5*b856e77bSJames Y Knight; CHECK-LABEL: test:
6*b856e77bSJames Y Knight; CHECK: bt __atomic_load_1
7*b856e77bSJames Y Knight; CHECK: bt __atomic_store_1
8*b856e77bSJames Y Knight  %1 = load atomic i8, ptr %a monotonic, align 16
9*b856e77bSJames Y Knight  store atomic i8 %1, ptr %a monotonic, align 16
10*b856e77bSJames Y Knight  ret void
11*b856e77bSJames Y Knight}
12