Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/atomic-load-store-wide.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 54457678186b |
line wrap: on
line source
; RUN: llc < %s -march=x86 -verify-machineinstrs | FileCheck %s ; 64-bit load/store on x86-32 ; FIXME: The generated code can be substantially improved. define void @test1(i64* %ptr, i64 %val1) { ; CHECK: test1 ; CHECK: cmpxchg8b ; CHECK-NEXT: jne store atomic i64 %val1, i64* %ptr seq_cst, align 8 ret void } define i64 @test2(i64* %ptr) { ; CHECK: test2 ; CHECK: cmpxchg8b %val = load atomic i64* %ptr seq_cst, align 8 ret i64 %val }