brintos

brintos / llvm-project-archived public Read only

0
0
Text · 603 B · fd1c5c6 Raw
29 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | FileCheck %s2; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2 | FileCheck %s3; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=440 | FileCheck %s -check-prefix=BE-CHK4 5define i32 @has_a_fence(i32 %a, i32 %b) nounwind {6entry:7  fence acquire8  %cond = icmp eq i32 %a, %b9  br i1 %cond, label %IfEqual, label %IfUnequal10 11IfEqual:12  fence release13; CHECK: sync14; CHECK-NOT: msync15; BE-CHK: msync16  br label %end17 18IfUnequal:19  fence release20; CHECK: sync21; CHECK-NOT: msync22; BE-CHK: msync23  ret i32 024 25end:26  ret i32 127}28 29