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
cfbc0231
Commit
cfbc0231
authored
20 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Tests for fp cmov's that I forgot to check in earlier
llvm-svn: 12585
parent
1a7e43c5
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/select.ll
+13
-0
13 additions, 0 deletions
llvm/test/Regression/CodeGen/X86/select.ll
with
13 additions
and
0 deletions
llvm/test/Regression/CodeGen/X86/select.ll
+
13
−
0
View file @
cfbc0231
...
@@ -48,3 +48,16 @@ int %foldSel2(bool %A, int %B, int %C, double %X, double %Y) {
...
@@ -48,3 +48,16 @@ int %foldSel2(bool %A, int %B, int %C, double %X, double %Y) {
ret
int
%X
ret
int
%X
}
}
float
%foldSel3
(
bool
%A
,
float
%B
,
float
%C
,
uint
%X
,
uint
%Y
)
{
%Cond
=
setlt
uint
%X
,
%Y
%X
=
select
bool
%Cond
,
float
%B
,
float
%C
ret
float
%X
}
float
%nofoldSel4
(
bool
%A
,
float
%B
,
float
%C
,
int
%X
,
int
%Y
)
{
; X86 doesn't have a cmov that reads the right flags for this!
%Cond
=
setlt
int
%X
,
%Y
%X
=
select
bool
%Cond
,
float
%B
,
float
%C
ret
float
%X
}
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