1; RUN: opt -S %s -atomic-expand -mtriple=i686-linux-gnu | FileCheck %s
2
3; This file tests the function `llvm::expandAtomicRMWToCmpXchg`.
4; It isn't technically target specific, but is exposed through a pass that is.
5
6define i8 @test_initial_load(i8* %ptr, i8 %value) {
7  %res = atomicrmw nand i8* %ptr, i8 %value seq_cst
8  ret i8 %res
9}
10; CHECK-LABEL: @test_initial_load
11; CHECK-NEXT:    %1 = load i8, i8* %ptr, align 1
12