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
983ac81f
Commit
983ac81f
authored
18 years ago
by
Evan Cheng
Browse files
Options
Downloads
Patches
Plain Diff
New LSR test case.
llvm-svn: 32029
parent
7a9238c8
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/Regression/CodeGen/X86/loop-strength-reduce2.ll
+29
-0
29 additions, 0 deletions
llvm/test/Regression/CodeGen/X86/loop-strength-reduce2.ll
with
29 additions
and
0 deletions
llvm/test/Regression/CodeGen/X86/loop-strength-reduce2.ll
0 → 100644
+
29
−
0
View file @
983ac81f
; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -relocation-model=pic | not grep lea
;
; Make sure the PIC label flags2-"L1$pb" is not moved up to the preheader.
%flags2
=
internal
global
[
8193
x
sbyte
]
zeroinitializer
,
align
32
void
%test
(
int
%k
,
int
%i
)
{
entry:
%i
=
bitcast
int
%i
to
uint
%k_addr.012
=
shl
int
%i
,
ubyte
1
%tmp14
=
setgt
int
%k_addr.012
,
8192
br
bool
%tmp14
,
label
%return
,
label
%bb
bb:
%indvar
=
phi
uint
[
0
,
%entry
],
[
%indvar.next
,
%bb
]
%tmp.
=
shl
uint
%i
,
ubyte
1
%tmp.15
=
mul
uint
%indvar
,
%i
%tmp.16
=
add
uint
%tmp.15
,
%tmp.
%k_addr.0.0
=
bitcast
uint
%tmp.16
to
int
%tmp
=
getelementptr
[
8193
x
sbyte
]*
%flags2
,
int
0
,
uint
%tmp.16
store
sbyte
0
,
sbyte
*
%tmp
%k_addr.0
=
add
int
%k_addr.0.0
,
%i
%tmp
=
setgt
int
%k_addr.0
,
8192
%indvar.next
=
add
uint
%indvar
,
1
br
bool
%tmp
,
label
%return
,
label
%bb
return:
ret
void
}
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