llvm.org GIT mirror llvm / 5e6b7a8
[NFC][LICM] Pre-commit test for unary FNeg support in LICM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368211 91177308-0d34-0410-b5e6-96231b3b80d8 Cameron McInally a month ago
1 changed file(s) with 23 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
125125 ret { i32*, i32 } %d
126126 }
127127
128 ; CHECK: define void @test6(float %f)
129 ; CHECK: call
130 ; CHECK: fneg
131 ; CHECK: call
132 define void @test6(float %f) #2 {
133 entry:
134 br label %for.body
135
136 for.body: ; preds = %for.body, %entry
137 %i = phi i32 [ 0, %entry ], [ %inc, %for.body ]
138 call void @foo_may_call_exit(i32 0)
139 %neg = fneg float %f
140 call void @use(float %neg)
141 %inc = add nsw i32 %i, 1
142 %cmp = icmp slt i32 %inc, 10000
143 br i1 %cmp, label %for.body, label %for.end
144
145 for.end: ; preds = %for.body
146 ret void
147 }
148
149 declare void @use(float)
150
128151 ; CHECK: define i32 @hoist_bitreverse(i32 %0)
129152 ; CHECK: bitreverse
130153 ; CHECK: br label %header