Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
llvm
hpvm-release
Commits
e7c8ccde
Commit
e7c8ccde
authored
Jan 28, 2020
by
Akash Kothari
Browse files
Adding unit tests
parent
ab54cf81
Changes
2
Hide whitespace changes
Inline
Side-by-side
hpvm/test/unitTests/ThreeLevel.ll
View file @
e7c8ccde
; RUN: opt -load LLVMGenHPVM.so -S -genhpvm < %s
; RUN: opt -
load LLVMGenHPVM.so -S -genhpvm < %s
; ModuleID = 'TwoLevel.c'
source_filename
=
"TwoLevel.c"
target
datalayout
=
"e-m:e-i64:64-f80:128-n8:16:32:64-S128"
...
...
@@ -10,7 +10,7 @@ target triple = "x86_64-unknown-linux-gnu"
define
dso_local
void
@Func1
(
i32
*
%In
,
i64
%Insize
,
i32
*
%Out
,
i64
%Outsize
)
#0
{
entry:
tail
call
void
@__hpvm__hint
(
i32
1
)
#3
tail
call
void
(
i32
,
...)
@__hpvm__attributes
(
i32
2
,
i32
*
%In
,
i32
*
%Out
,
i32
1
,
i32
*
%Out
)
#3
tail
call
void
(
i32
,
...)
@__hpvm__attributes
(
i32
1
,
i32
*
%In
,
i32
*
%Out
,
i32
1
,
i32
*
%Out
)
#3
%0
=
load
i32
,
i32
*
%In
,
align
4
,
!tbaa
!2
store
i32
%0
,
i32
*
%Out
,
align
4
,
!tbaa
!2
tail
call
void
(
i32
,
...)
@__hpvm__return
(
i32
1
,
i32
*
%Out
)
#3
...
...
hpvm/test/unitTests/TwoLevel.ll
View file @
e7c8ccde
...
...
@@ -10,7 +10,7 @@ target triple = "x86_64-unknown-linux-gnu"
define
dso_local
void
@Func1
(
i32
*
%In
,
i64
%Insize
,
i32
*
%Out
,
i64
%Outsize
)
#0
{
entry:
tail
call
void
@__hpvm__hint
(
i32
1
)
#3
tail
call
void
(
i32
,
...)
@__hpvm__attributes
(
i32
2
,
i32
*
%In
,
i32
*
%Out
,
i32
1
,
i32
*
%Out
)
#3
tail
call
void
(
i32
,
...)
@__hpvm__attributes
(
i32
1
,
i32
*
%In
,
i32
*
%Out
,
i32
1
,
i32
*
%Out
)
#3
%0
=
load
i32
,
i32
*
%In
,
align
4
,
!tbaa
!2
store
i32
%0
,
i32
*
%Out
,
align
4
,
!tbaa
!2
tail
call
void
(
i32
,
...)
@__hpvm__return
(
i32
1
,
i32
*
%Out
)
#3
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment