Skip to content

Commit

Permalink
adding more support for arrays
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Jul 19, 2022
1 parent 3d0628d commit b5bd146
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion array/atoms.asp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
abi_typelocation("lib.so","main","Export","Integer32","%rax").
abi_typelocation("lib.so","_Z3fooi3Foo","Import","Integer32","%rdi").
abi_typelocation("lib.so","_Z3fooi3Foo","Export","Integer32","%rsi").
abi_typelocation("lib.so","_Z3fooi3Foo","Export","Integer8","%rdx").
abi_typelocation("lib.so","_Z3fooi3Foo","Import","Array[8]","%rdx").
abi_typelocation("lib.so","_Z3fooi3Foo","Import","Integer8","(%rdx)").
abi_typelocation("lib.so","_Z3fooi3Foo","Export","Float64","%xmm0").
abi_typelocation("lib.so","_Z3fooi3Foo","Export","Float64","%xmm1").
3 changes: 2 additions & 1 deletion fixed-sized-array/atoms.asp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
%----------------------------------------------------------------------------
% Library: lib.so
%----------------------------------------------------------------------------
abi_typelocation("lib.so","fixedSizeArray","Export","Integer32[120]","var").
abi_typelocation("lib.so","fixedSizeArray","Export","Array[120]","var").
abi_typelocation("lib.so","fixedSizeArray","Export","Integer32","var").
abi_typelocation("lib.so","main","Export","Integer32","%rax").
abi_typelocation("lib.so","_Z30function_with_fixed_size_arrayPi","Both","Integer32","(%rdi)").
3 changes: 2 additions & 1 deletion fixed-sized-array/atoms.truth.asp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
%----------------------------------------------------------------------------
% Library: lib.so
%----------------------------------------------------------------------------
abi_typelocation("lib.so","fixedSizeArray","Export","Integer32[120]","var").
abi_typelocation("lib.so","fixedSizeArray","Export","Array[120]","var").
abi_typelocation("lib.so","fixedSizeArray","Export","Integer32","var").
abi_typelocation("lib.so","main","Export","Integer32","%rax").
abi_typelocation("lib.so","_Z30function_with_fixed_size_arrayPi","Both","Integer32","(%rdi)").
3 changes: 2 additions & 1 deletion structure-array-structures/atoms.asp
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ abi_typelocation("example","main","Import","Integer32","%rdi").
abi_typelocation("example","main","Both","Integer8","((%rsi))").
abi_typelocation("example","main","Export","Integer32","%rax").
abi_typelocation("example","_Z3fooiPP7Structy","Import","Integer32","%rdi").
abi_typelocation("example","_Z3fooiPP7Structy","Import","Integer32","((%rsi))").
abi_typelocation("example","_Z3fooiPP7Structy","Import","Array[40]","((%rsi))").
abi_typelocation("example","_Z3fooiPP7Structy","Import","Integer32","(((%rsi)))").
abi_typelocation("example","_Z3fooiPP7Structy","Export","Integer32","%rax").
6 changes: 4 additions & 2 deletions structure-arrays-of-arrays/atoms.asp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ abi_typelocation("example","main","Import","Integer32","%rdi").
abi_typelocation("example","main","Both","Integer8","((%rsi))").
abi_typelocation("example","main","Export","Integer32","%rax").
abi_typelocation("example","_Z3fooiP7Structy","Import","Integer32","%rdi").
abi_typelocation("example","_Z3fooiP7Structy","Import","Integer32","(%rsi)").
abi_typelocation("example","_Z3fooiP7Structy","Import","Integer32","(%rsi)+100").
abi_typelocation("example","_Z3fooiP7Structy","Import","Array[40]","(%rsi)").
abi_typelocation("example","_Z3fooiP7Structy","Import","Integer32","((%rsi))").
abi_typelocation("example","_Z3fooiP7Structy","Import","Array[240]","(%rsi)+100").
abi_typelocation("example","_Z3fooiP7Structy","Import","Integer32","((%rsi)+100)").
abi_typelocation("example","_Z3fooiP7Structy","Export","Integer32","%rax").

0 comments on commit b5bd146

Please sign in to comment.