Skip to content

Commit

Permalink
Issue #27: Adding loop tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lialan committed Nov 24, 2019
1 parent d77f654 commit 7d748ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/CodeGen/EVM/runtime_tests/loop2.ll
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ define i256 @abc(i256, i256) #0 {
; <label>:10: ; preds = %6
%11 = load i256, i256* %3, align 4
%12 = load i256, i256* %3, align 4
%13 = add i256 %12, %11
%13 = add i256 %12, 1
store i256 %13, i256* %3, align 4
br label %14

Expand Down
7 changes: 6 additions & 1 deletion tools/evm-test/evm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ def run_string_input(name: str, inputs: List[str], output: str, function: str) -
"loop2" : {
"file": "loop2.ll",
"input": ["0x00001000", "0x0000000a"],
"output": "0x00000000000000000000000000000000000000000000000000000a000",
"output": "0x000000000000000000000000000000000000000000000000000000000000100a"
},
"loop3" : {
"file": "loop2.ll",
"input": ["0x0000000a", "0x00001000"],
"output": "0x000000000000000000000000000000000000000000000000000000000000100a"
},
})

Expand Down

0 comments on commit 7d748ff

Please sign in to comment.