interp: add basic test to interp package

More tests should be added in the future, but this is a start.
This commit is contained in:
Ayke van Laethem
2019-09-21 20:08:43 +02:00
committed by Ayke
parent da7f7eef00
commit 4ea1559d46
5 changed files with 162 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64--linux"
declare void @runtime.printint64(i64) unnamed_addr
declare void @runtime.printnl() unnamed_addr
define void @runtime.initAll() unnamed_addr {
entry:
call void @runtime.printint64(i64 5)
call void @runtime.printnl()
ret void
}
define void @main() unnamed_addr {
entry:
call void @runtime.printint64(i64 3)
call void @runtime.printnl()
ret void
}