mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
906e0f5f55
Summary: Also expose getters and setters in the C API, so that the change can be tested. Reviewers: nhaehnle, axw, joker.eph Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D18260 From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> llvm-svn: 263886
11 lines
269 B
LLVM
11 lines
269 B
LLVM
; RUN: llvm-as < %s | llvm-dis > %t.orig
|
|
; RUN: llvm-as < %s | llvm-c-test --echo > %t.echo
|
|
; RUN: diff -w %t.orig %t.echo
|
|
|
|
define i32 @main() {
|
|
%1 = alloca i32
|
|
%2 = cmpxchg i32* %1, i32 2, i32 3 seq_cst acquire
|
|
%3 = extractvalue { i32, i1 } %2, 0
|
|
ret i32 %3
|
|
}
|