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 28