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
9ef5c507
Commit
9ef5c507
authored
14 years ago
by
Owen Anderson
Browse files
Options
Downloads
Patches
Plain Diff
Add tests for NEON encoding of vsubl.
llvm-svn: 117183
parent
811a0f55
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/MC/ARM/neon-sub-encoding.ll
+66
-0
66 additions, 0 deletions
llvm/test/MC/ARM/neon-sub-encoding.ll
with
66 additions
and
0 deletions
llvm/test/MC/ARM/neon-sub-encoding.ll
+
66
−
0
View file @
9ef5c507
...
...
@@ -89,3 +89,69 @@ define <4 x float> @vsub_4xfloat(<4 x float>* %A, <4 x float>* %B) nounwind {
%tmp3
=
fsub
<
4
x
float
>
%tmp1
,
%tmp2
ret
<
4
x
float
>
%tmp3
}
; CHECK: vsubls_8xi8
define
<
8
x
i16
>
@vsubls_8xi8
(<
8
x
i8
>*
%A
,
<
8
x
i8
>*
%B
)
nounwind
{
%tmp1
=
load
<
8
x
i8
>*
%A
%tmp2
=
load
<
8
x
i8
>*
%B
%tmp3
=
sext
<
8
x
i8
>
%tmp1
to
<
8
x
i16
>
%tmp4
=
sext
<
8
x
i8
>
%tmp2
to
<
8
x
i16
>
; CHECK: vsubl.s8 q8, d17, d16 @ encoding: [0xa0,0x02,0xc1,0xf2]
%tmp5
=
sub
<
8
x
i16
>
%tmp3
,
%tmp4
ret
<
8
x
i16
>
%tmp5
}
; CHECK: vsubls_4xi16
define
<
4
x
i32
>
@vsubls_4xi16
(<
4
x
i16
>*
%A
,
<
4
x
i16
>*
%B
)
nounwind
{
%tmp1
=
load
<
4
x
i16
>*
%A
%tmp2
=
load
<
4
x
i16
>*
%B
%tmp3
=
sext
<
4
x
i16
>
%tmp1
to
<
4
x
i32
>
%tmp4
=
sext
<
4
x
i16
>
%tmp2
to
<
4
x
i32
>
; CHECK: vsubl.s16 q8, d17, d16 @ encoding: [0xa0,0x02,0xd1,0xf2]
%tmp5
=
sub
<
4
x
i32
>
%tmp3
,
%tmp4
ret
<
4
x
i32
>
%tmp5
}
; CHECK: vsubls_2xi32
define
<
2
x
i64
>
@vsubls_2xi32
(<
2
x
i32
>*
%A
,
<
2
x
i32
>*
%B
)
nounwind
{
%tmp1
=
load
<
2
x
i32
>*
%A
%tmp2
=
load
<
2
x
i32
>*
%B
%tmp3
=
sext
<
2
x
i32
>
%tmp1
to
<
2
x
i64
>
%tmp4
=
sext
<
2
x
i32
>
%tmp2
to
<
2
x
i64
>
; CHECK: vsubl.s32 q8, d17, d16 @ encoding: [0xa0,0x02,0xe1,0xf2]
%tmp5
=
sub
<
2
x
i64
>
%tmp3
,
%tmp4
ret
<
2
x
i64
>
%tmp5
}
; CHECK: vsublu_8xi8
define
<
8
x
i16
>
@vsublu_8xi8
(<
8
x
i8
>*
%A
,
<
8
x
i8
>*
%B
)
nounwind
{
%tmp1
=
load
<
8
x
i8
>*
%A
%tmp2
=
load
<
8
x
i8
>*
%B
%tmp3
=
zext
<
8
x
i8
>
%tmp1
to
<
8
x
i16
>
%tmp4
=
zext
<
8
x
i8
>
%tmp2
to
<
8
x
i16
>
; CHECK: vsubl.u8 q8, d17, d16 @ encoding: [0xa0,0x02,0xc1,0xf3]
%tmp5
=
sub
<
8
x
i16
>
%tmp3
,
%tmp4
ret
<
8
x
i16
>
%tmp5
}
; CHECK: vsublu_4xi16
define
<
4
x
i32
>
@vsublu_4xi16
(<
4
x
i16
>*
%A
,
<
4
x
i16
>*
%B
)
nounwind
{
%tmp1
=
load
<
4
x
i16
>*
%A
%tmp2
=
load
<
4
x
i16
>*
%B
%tmp3
=
zext
<
4
x
i16
>
%tmp1
to
<
4
x
i32
>
%tmp4
=
zext
<
4
x
i16
>
%tmp2
to
<
4
x
i32
>
; CHECK: vsubl.u16 q8, d17, d16 @ encoding: [0xa0,0x02,0xd1,0xf3]
%tmp5
=
sub
<
4
x
i32
>
%tmp3
,
%tmp4
ret
<
4
x
i32
>
%tmp5
}
; CHECK: vsublu_2xi32
define
<
2
x
i64
>
@vsublu_2xi32
(<
2
x
i32
>*
%A
,
<
2
x
i32
>*
%B
)
nounwind
{
%tmp1
=
load
<
2
x
i32
>*
%A
%tmp2
=
load
<
2
x
i32
>*
%B
%tmp3
=
zext
<
2
x
i32
>
%tmp1
to
<
2
x
i64
>
%tmp4
=
zext
<
2
x
i32
>
%tmp2
to
<
2
x
i64
>
; CHECK: vsubl.u32 q8, d17, d16 @ encoding: [0xa0,0x02,0xe1,0xf3]
%tmp5
=
sub
<
2
x
i64
>
%tmp3
,
%tmp4
ret
<
2
x
i64
>
%tmp5
}
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