Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
62240d65
Commit
62240d65
authored
17 years ago
by
Evan Cheng
Browse files
Options
Downloads
Patches
Plain Diff
Add PR1501 test case.
llvm-svn: 47874
parent
b2ce2638
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/test/CodeGen/X86/coalescer-commute4.ll
+30
-0
30 additions, 0 deletions
llvm/test/CodeGen/X86/coalescer-commute4.ll
with
30 additions
and
0 deletions
llvm/test/CodeGen/X86/coalescer-commute4.ll
0 → 100644
+
30
−
0
View file @
62240d65
d
; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 | not grep movaps
; PR1501
efine
float
@foo
(
i32
*
%x
,
float
*
%y
,
i32
%c
)
nounwind
{
entry:
%tmp2132
=
icmp
eq
i32
%c
,
0
; <i1> [#uses=2]
br
i1
%tmp2132
,
label
%bb23
,
label
%bb.preheader
bb.preheader:
; preds = %entry
%umax
=
select
i1
%tmp2132
,
i32
1
,
i32
%c
; <i32> [#uses=1]
br
label
%bb
bb:
; preds = %bb, %bb.preheader
%i.0.reg2mem.0
=
phi
i32
[
0
,
%bb.preheader
],
[
%indvar.next
,
%bb
]
; <i32> [#uses=3]
%res.0.reg2mem.0
=
phi
float
[
0.000000e+00
,
%bb.preheader
],
[
%tmp14
,
%bb
]
; <float> [#uses=1]
%tmp3
=
getelementptr
i32
*
%x
,
i32
%i.0.reg2mem.0
; <i32*> [#uses=1]
%tmp4
=
load
i32
*
%tmp3
,
align
4
; <i32> [#uses=1]
%tmp45
=
sitofp
i32
%tmp4
to
float
; <float> [#uses=1]
%tmp8
=
getelementptr
float
*
%y
,
i32
%i.0.reg2mem.0
; <float*> [#uses=1]
%tmp9
=
load
float
*
%tmp8
,
align
4
; <float> [#uses=1]
%tmp11
=
mul
float
%tmp9
,
%tmp45
; <float> [#uses=1]
%tmp14
=
add
float
%tmp11
,
%res.0.reg2mem.0
; <float> [#uses=2]
%indvar.next
=
add
i32
%i.0.reg2mem.0
,
1
; <i32> [#uses=2]
%exitcond
=
icmp
eq
i32
%indvar.next
,
%umax
; <i1> [#uses=1]
br
i1
%exitcond
,
label
%bb23
,
label
%bb
bb23:
; preds = %bb, %entry
%res.0.reg2mem.1
=
phi
float
[
0.000000e+00
,
%entry
],
[
%tmp14
,
%bb
]
; <float> [#uses=1]
ret
float
%res.0.reg2mem.1
}
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