Mercurial > hg > CbC > CbC_llvm
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:95c75e76d11b |
---|---|
1 ; RUN: llc < %s -march=ppc32 | FileCheck %s | |
2 ; RUN: llc < %s -march=ppc32 -mcpu=440 | FileCheck %s -check-prefix=BE-CHK | |
3 | |
4 define i32 @has_a_fence(i32 %a, i32 %b) nounwind { | |
5 entry: | |
6 fence acquire | |
7 %cond = icmp eq i32 %a, %b | |
8 br i1 %cond, label %IfEqual, label %IfUnequal | |
9 | |
10 IfEqual: | |
11 fence release | |
12 ; CHECK: sync | |
13 ; CHECK-NOT: msync | |
14 ; BE-CHK: msync | |
15 br label %end | |
16 | |
17 IfUnequal: | |
18 fence release | |
19 ; CHECK: sync | |
20 ; CHECK-NOT: msync | |
21 ; BE-CHK: msync | |
22 ret i32 0 | |
23 | |
24 end: | |
25 ret i32 1 | |
26 } | |
27 |