12 lines · plain
1; RUN: opt -S %s -passes=atomic-expand -mtriple=i686-linux-gnu | FileCheck %s2 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(ptr %ptr, i8 %value) {7 %res = atomicrmw nand ptr %ptr, i8 %value seq_cst8 ret i8 %res9}10; CHECK-LABEL: @test_initial_load11; CHECK-NEXT: %1 = load i8, ptr %ptr, align 112