10 lines · plain
1; RUN: opt < %s -passes=sccp -S | FileCheck %s2 3define i1 @test_cmpxchg(ptr %addr, i32 %desired, i32 %new) {4; CHECK-LABEL: @test_cmpxchg5; CHECK: cmpxchg ptr %addr, i32 %desired, i32 %new seq_cst seq_cst6 %val = cmpxchg ptr %addr, i32 %desired, i32 %new seq_cst seq_cst7 %res = extractvalue { i32, i1 } %val, 18 ret i1 %res9}10