~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/PowerPC/subreg-postra.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc -mcpu=pwr7 < %s | FileCheck %s
 
2
target datalayout = "E-m:e-i64:64-n32:64"
 
3
target triple = "powerpc64-unknown-linux-gnu"
 
4
 
 
5
; Function Attrs: nounwind
 
6
define void @jbd2_journal_commit_transaction(i32* %journal) #0 {
 
7
entry:
 
8
  br i1 undef, label %do.body, label %if.then5
 
9
 
 
10
if.then5:                                         ; preds = %entry
 
11
  unreachable
 
12
 
 
13
do.body:                                          ; preds = %entry
 
14
  br i1 undef, label %do.body.i, label %trace_jbd2_start_commit.exit
 
15
 
 
16
do.body.i:                                        ; preds = %do.body
 
17
  unreachable
 
18
 
 
19
trace_jbd2_start_commit.exit:                     ; preds = %do.body
 
20
  br i1 undef, label %do.body.i1116, label %trace_jbd2_commit_locking.exit
 
21
 
 
22
do.body.i1116:                                    ; preds = %trace_jbd2_start_commit.exit
 
23
  br i1 undef, label %if.end.i1123, label %do.body5.i1122
 
24
 
 
25
do.body5.i1122:                                   ; preds = %do.body.i1116
 
26
  unreachable
 
27
 
 
28
if.end.i1123:                                     ; preds = %do.body.i1116
 
29
  br label %trace_jbd2_commit_locking.exit
 
30
 
 
31
trace_jbd2_commit_locking.exit:                   ; preds = %if.end.i1123, %trace_jbd2_start_commit.exit
 
32
  br i1 undef, label %spin_unlock.exit1146, label %if.then.i.i.i.i1144
 
33
 
 
34
if.then.i.i.i.i1144:                              ; preds = %trace_jbd2_commit_locking.exit
 
35
  unreachable
 
36
 
 
37
spin_unlock.exit1146:                             ; preds = %trace_jbd2_commit_locking.exit
 
38
  br i1 undef, label %spin_unlock.exit1154, label %if.then.i.i.i.i1152
 
39
 
 
40
if.then.i.i.i.i1152:                              ; preds = %spin_unlock.exit1146
 
41
  br label %spin_unlock.exit1154
 
42
 
 
43
spin_unlock.exit1154:                             ; preds = %if.then.i.i.i.i1152, %spin_unlock.exit1146
 
44
  br i1 undef, label %do.body.i1159, label %trace_jbd2_commit_flushing.exit
 
45
 
 
46
do.body.i1159:                                    ; preds = %spin_unlock.exit1154
 
47
  unreachable
 
48
 
 
49
trace_jbd2_commit_flushing.exit:                  ; preds = %spin_unlock.exit1154
 
50
  br i1 undef, label %for.end.i, label %for.body.lr.ph.i
 
51
 
 
52
for.body.lr.ph.i:                                 ; preds = %trace_jbd2_commit_flushing.exit
 
53
  br i1 undef, label %spin_unlock.exit.i, label %if.then.i.i.i.i.i
 
54
 
 
55
if.then.i.i.i.i.i:                                ; preds = %for.body.lr.ph.i
 
56
  unreachable
 
57
 
 
58
spin_unlock.exit.i:                               ; preds = %for.body.lr.ph.i
 
59
  unreachable
 
60
 
 
61
for.end.i:                                        ; preds = %trace_jbd2_commit_flushing.exit
 
62
  br i1 undef, label %journal_submit_data_buffers.exit, label %if.then.i.i.i.i31.i
 
63
 
 
64
if.then.i.i.i.i31.i:                              ; preds = %for.end.i
 
65
  unreachable
 
66
 
 
67
journal_submit_data_buffers.exit:                 ; preds = %for.end.i
 
68
  br i1 undef, label %if.end103, label %if.then102
 
69
 
 
70
if.then102:                                       ; preds = %journal_submit_data_buffers.exit
 
71
  unreachable
 
72
 
 
73
if.end103:                                        ; preds = %journal_submit_data_buffers.exit
 
74
  br i1 undef, label %do.body.i1182, label %trace_jbd2_commit_logging.exit
 
75
 
 
76
do.body.i1182:                                    ; preds = %if.end103
 
77
  unreachable
 
78
 
 
79
trace_jbd2_commit_logging.exit:                   ; preds = %if.end103
 
80
  br i1 undef, label %for.end.i1287, label %for.body.i1277
 
81
 
 
82
for.body.i1277:                                   ; preds = %trace_jbd2_commit_logging.exit
 
83
  unreachable
 
84
 
 
85
for.end.i1287:                                    ; preds = %trace_jbd2_commit_logging.exit
 
86
  br i1 undef, label %journal_finish_inode_data_buffers.exit, label %if.then.i.i.i.i84.i
 
87
 
 
88
if.then.i.i.i.i84.i:                              ; preds = %for.end.i1287
 
89
  unreachable
 
90
 
 
91
journal_finish_inode_data_buffers.exit:           ; preds = %for.end.i1287
 
92
  br i1 undef, label %if.end256, label %if.then249
 
93
 
 
94
if.then249:                                       ; preds = %journal_finish_inode_data_buffers.exit
 
95
  unreachable
 
96
 
 
97
if.end256:                                        ; preds = %journal_finish_inode_data_buffers.exit
 
98
  br i1 undef, label %do.body277, label %if.then260
 
99
 
 
100
if.then260:                                       ; preds = %if.end256
 
101
  br label %do.body277
 
102
 
 
103
do.body277:                                       ; preds = %if.then260, %if.end256
 
104
  br label %while.body318
 
105
 
 
106
while.body318:                                    ; preds = %wait_on_buffer.exit, %do.body277
 
107
  %tobool.i1295 = icmp eq i64 undef, 0
 
108
  br i1 %tobool.i1295, label %wait_on_buffer.exit, label %if.then.i1296
 
109
 
 
110
if.then.i1296:                                    ; preds = %while.body318
 
111
  unreachable
 
112
 
 
113
wait_on_buffer.exit:                              ; preds = %while.body318
 
114
  br i1 undef, label %do.body378, label %while.body318
 
115
 
 
116
do.body378:                                       ; preds = %wait_on_buffer.exit
 
117
  br i1 undef, label %while.end418, label %while.body392.lr.ph
 
118
 
 
119
while.body392.lr.ph:                              ; preds = %do.body378
 
120
  br label %while.body392
 
121
 
 
122
while.body392:                                    ; preds = %wait_on_buffer.exit1319, %while.body392.lr.ph
 
123
  %0 = load i8*, i8** undef, align 8
 
124
  %add.ptr399 = getelementptr inbounds i8, i8* %0, i64 -72
 
125
  %b_state.i.i1314 = bitcast i8* %add.ptr399 to i64*
 
126
  %tobool.i1316 = icmp eq i64 undef, 0
 
127
  br i1 %tobool.i1316, label %wait_on_buffer.exit1319, label %if.then.i1317
 
128
 
 
129
if.then.i1317:                                    ; preds = %while.body392
 
130
  unreachable
 
131
 
 
132
wait_on_buffer.exit1319:                          ; preds = %while.body392
 
133
  %1 = load volatile i64, i64* %b_state.i.i1314, align 8
 
134
  %conv.i.i1322 = and i64 %1, 1
 
135
  %lnot404 = icmp eq i64 %conv.i.i1322, 0
 
136
  %.err.4 = select i1 %lnot404, i32 -5, i32 undef
 
137
  %2 = call i64 asm sideeffect "1:.long 0x7c0000a8 $| ((($0) & 0x1f) << 21) $| (((0) & 0x1f) << 16) $| ((($3) & 0x1f) << 11) $| (((0) & 0x1) << 0) \0Aandc $0,$0,$2\0Astdcx. $0,0,$3\0Abne- 1b\0A", "=&r,=*m,r,r,*m,~{cc},~{memory}"(i64* %b_state.i.i1314, i64 262144, i64* %b_state.i.i1314, i64* %b_state.i.i1314) #1
 
138
  %prev.i.i.i1325 = getelementptr inbounds i8, i8* %0, i64 8
 
139
  %3 = load i32*, i32** null, align 8
 
140
  store i32* %3, i32** undef, align 8
 
141
  call void @__brelse(i32* undef) #1
 
142
  br i1 undef, label %while.end418, label %while.body392
 
143
 
 
144
; CHECK-LABEL: @jbd2_journal_commit_transaction
 
145
; CHECK: andi.
 
146
; CHECK: crmove [[REG:[0-9]+]], 1
 
147
; CHECK: stdcx.
 
148
; CHECK: isel {{[0-9]+}}, {{[0-9]+}}, {{[0-9]+}}, [[REG]]
 
149
 
 
150
while.end418:                                     ; preds = %wait_on_buffer.exit1319, %do.body378
 
151
  %err.4.lcssa = phi i32 [ undef, %do.body378 ], [ %.err.4, %wait_on_buffer.exit1319 ]
 
152
  br i1 undef, label %if.end421, label %if.then420
 
153
 
 
154
if.then420:                                       ; preds = %while.end418
 
155
  call void @jbd2_journal_abort(i32* %journal, i32 signext %err.4.lcssa) #1
 
156
  br label %if.end421
 
157
 
 
158
if.end421:                                        ; preds = %if.then420, %while.end418
 
159
  unreachable
 
160
}
 
161
 
 
162
declare void @jbd2_journal_abort(i32*, i32 signext)
 
163
 
 
164
declare void @__brelse(i32*)
 
165
 
 
166
attributes #0 = { nounwind }
 
167
attributes #1 = { nounwind }
 
168