Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/PowerPC/ppc440-msync.ll @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | 60c9769439b8 |
line wrap: on
line source
; RUN: llc < %s -march=ppc32 | FileCheck %s ; RUN: llc < %s -march=ppc32 -mcpu=440 | FileCheck %s -check-prefix=BE-CHK define i32 @has_a_fence(i32 %a, i32 %b) nounwind { entry: fence acquire %cond = icmp eq i32 %a, %b br i1 %cond, label %IfEqual, label %IfUnequal IfEqual: fence release ; CHECK: sync ; CHECK-NOT: msync ; BE-CHK: msync br label %end IfUnequal: fence release ; CHECK: sync ; CHECK-NOT: msync ; BE-CHK: msync ret i32 0 end: ret i32 1 }