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
534e1667
Commit
534e1667
authored
15 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
merge two tests, make target independent.
llvm-svn: 95651
parent
f5f335da
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/test/CodeGen/Generic/switch-lower-feature-2.ll
+0
-50
0 additions, 50 deletions
llvm/test/CodeGen/Generic/switch-lower-feature-2.ll
llvm/test/CodeGen/Generic/switch-lower-feature.ll
+40
-6
40 additions, 6 deletions
llvm/test/CodeGen/Generic/switch-lower-feature.ll
with
40 additions
and
56 deletions
llvm/test/CodeGen/Generic/switch-lower-feature-2.ll
deleted
100644 → 0
+
0
−
50
View file @
f5f335da
; RUN: llc < %s -march=x86 -o %t
; RUN: grep jb %t | count 1
; RUN: grep \\\$6 %t | count 2
; RUN: grep 1024 %t | count 1
; RUN: grep 1023 %t | count 1
; RUN: grep 119 %t | count 1
; RUN: grep JTI %t | count 2
; RUN: grep jg %t | count 3
; RUN: grep ja %t | count 1
; RUN: grep jns %t | count 1
target
triple
=
"i686-pc-linux-gnu"
define
i32
@main
(
i32
%tmp158
)
{
entry:
switch
i32
%tmp158
,
label
%bb336
[
i32
-2147483648
,
label
%bb338
i32
-2147483647
,
label
%bb338
i32
-2147483646
,
label
%bb338
i32
120
,
label
%bb338
i32
121
,
label
%bb339
i32
122
,
label
%bb340
i32
123
,
label
%bb341
i32
124
,
label
%bb342
i32
125
,
label
%bb343
i32
126
,
label
%bb336
i32
1024
,
label
%bb338
i32
0
,
label
%bb338
i32
1
,
label
%bb338
i32
2
,
label
%bb338
i32
3
,
label
%bb338
i32
4
,
label
%bb338
i32
5
,
label
%bb338
]
bb336:
ret
i32
10
bb338:
ret
i32
11
bb339:
ret
i32
12
bb340:
ret
i32
13
bb341:
ret
i32
14
bb342:
ret
i32
15
bb343:
ret
i32
18
}
This diff is collapsed.
Click to expand it.
llvm/test/CodeGen/Generic/switch-lower-feature.ll
+
40
−
6
View file @
534e1667
; RUN: llc < %s -march=x86 -o - | grep {\$7} | count 1
; RUN: llc < %s
; RUN: llc < %s -march=x86 -o - | grep {\$6} | count 1
; RUN: llc < %s -march=x86 -o - | grep 1024 | count 1
; RUN: llc < %s -march=x86 -o - | grep jb | count 2
; RUN: llc < %s -march=x86 -o - | grep je | count 1
define
i32
@
main
(
i32
%tmp158
)
{
define
i32
@
test
(
i32
%tmp158
)
{
entry:
entry:
switch
i32
%tmp158
,
label
%bb336
[
switch
i32
%tmp158
,
label
%bb336
[
i32
120
,
label
%bb338
i32
120
,
label
%bb338
...
@@ -27,3 +23,41 @@ bb336:
...
@@ -27,3 +23,41 @@ bb336:
bb338:
bb338:
ret
i32
11
ret
i32
11
}
}
define
i32
@test2
(
i32
%tmp158
)
{
entry:
switch
i32
%tmp158
,
label
%bb336
[
i32
-2147483648
,
label
%bb338
i32
-2147483647
,
label
%bb338
i32
-2147483646
,
label
%bb338
i32
120
,
label
%bb338
i32
121
,
label
%bb339
i32
122
,
label
%bb340
i32
123
,
label
%bb341
i32
124
,
label
%bb342
i32
125
,
label
%bb343
i32
126
,
label
%bb336
i32
1024
,
label
%bb338
i32
0
,
label
%bb338
i32
1
,
label
%bb338
i32
2
,
label
%bb338
i32
3
,
label
%bb338
i32
4
,
label
%bb338
i32
5
,
label
%bb338
]
bb336:
ret
i32
10
bb338:
ret
i32
11
bb339:
ret
i32
12
bb340:
ret
i32
13
bb341:
ret
i32
14
bb342:
ret
i32
15
bb343:
ret
i32
18
}
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