1; RUN: opt < %s -passes=sccp -S | FileCheck %s 2 3define i1 @test_cmpxchg(ptr %addr, i32 %desired, i32 %new) { 4; CHECK-LABEL: @test_cmpxchg 5; CHECK: cmpxchg ptr %addr, i32 %desired, i32 %new seq_cst seq_cst 6 %val = cmpxchg ptr %addr, i32 %desired, i32 %new seq_cst seq_cst 7 %res = extractvalue { i32, i1 } %val, 1 8 ret i1 %res 9} 10