Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
dcb9e1b3
Commit
dcb9e1b3
authored
7 years ago
by
Sanjay Patel
Browse files
Options
Downloads
Patches
Plain Diff
[InstCombine] regenerate test checks; NFC
llvm-svn: 318420
parent
ba3a87d8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/test/Transforms/InstCombine/pow-sqrt.ll
+9
-9
9 additions, 9 deletions
llvm/test/Transforms/InstCombine/pow-sqrt.ll
with
9 additions
and
9 deletions
llvm/test/Transforms/InstCombine/pow-sqrt.ll
+
9
−
9
View file @
dcb9e1b3
; RUN: opt < %s -instcombine -S | FileCheck %s
; RUN: opt < %s -instcombine -S | FileCheck %s
define
double
@pow_half
(
double
%x
)
{
define
double
@pow_half
(
double
%x
)
{
; CHECK-LABEL: @pow_half(
; CHECK-NEXT: [[SQRT:%.*]] = call fast double @sqrt(double %x) #1
; CHECK-NEXT: ret double [[SQRT]]
;
%pow
=
call
fast
double
@llvm.pow.f64
(
double
%x
,
double
5.000000e-01
)
%pow
=
call
fast
double
@llvm.pow.f64
(
double
%x
,
double
5.000000e-01
)
ret
double
%pow
ret
double
%pow
}
}
; CHECK-LABEL: define double @pow_half(
; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) #1
; CHECK-NEXT: ret double %sqrt
define
double
@pow_neghalf
(
double
%x
)
{
define
double
@pow_neghalf
(
double
%x
)
{
; CHECK-LABEL: @pow_neghalf(
; CHECK-NEXT: [[SQRT:%.*]] = call fast double @sqrt(double %x) #1
; CHECK-NEXT: [[SQRTRECIP:%.*]] = fdiv fast double 1.000000e+00, [[SQRT]]
; CHECK-NEXT: ret double [[SQRTRECIP]]
;
%pow
=
call
fast
double
@llvm.pow.f64
(
double
%x
,
double
-5.000000e-01
)
%pow
=
call
fast
double
@llvm.pow.f64
(
double
%x
,
double
-5.000000e-01
)
ret
double
%pow
ret
double
%pow
}
}
; CHECK-LABEL: define double @pow_neghalf(
; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) #1
; CHECK-NEXT: %sqrtrecip = fdiv fast double 1.000000e+00, %sqrt
; CHECK-NEXT: ret double %sqrtrecip
declare
double
@llvm.pow.f64
(
double
,
double
)
#0
declare
double
@llvm.pow.f64
(
double
,
double
)
#0
attributes
#0
=
{
nounwind
readnone
speculatable
}
attributes
#0
=
{
nounwind
readnone
speculatable
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment