Commit e7c8ccde authored by Akash Kothari's avatar Akash Kothari
Browse files

Adding unit tests

parent ab54cf81
; 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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment