• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc <%s | FileCheck %s
2target datalayout = "e-m:e-i64:64-n32:64"
3target triple = "powerpc64le-unknown-linux-gnu"
4
5%struct.buffer_t = type { i64, i8*, [4 x i32], [4 x i32], [4 x i32], i32, i8, i8, [2 x i8] }
6
7declare i32 @__f1(i8*, %struct.buffer_t* noalias)
8
9; CHECK-LABEL: f1:
10define i32 @f1(i8* %__user_context, %struct.buffer_t* noalias %f1.buffer) {
11entry:
12  br i1 undef, label %"assert succeeded", label %"assert failed", !prof !1
13
14"assert failed":                                  ; preds = %entry
15  br label %destructor_block
16
17"assert succeeded":                               ; preds = %entry
18  %__f1_result = call i32 @__f1(i8* %__user_context, %struct.buffer_t* %f1.buffer) #5
19  %0 = icmp eq i32 %__f1_result, 0
20  br i1 %0, label %"assert succeeded11", label %"assert failed10", !prof !1
21
22destructor_block:                                 ; preds = %"assert succeeded11", %"assert failed10", %"assert failed"
23  %1 = phi i32 [ undef, %"assert failed" ], [ %__f1_result, %"assert failed10" ], [ 0, %"assert succeeded11" ]
24  ret i32 %1
25
26"assert failed10":                                ; preds = %"assert succeeded"
27  br label %destructor_block
28
29"assert succeeded11":                             ; preds = %"assert succeeded"
30  br label %destructor_block
31}
32
33attributes #5 = { nounwind }
34
35!1 = !{!"branch_weights", i32 1073741824, i32 0}
36