test cases for JUMPS/phi nodes

This commit is contained in:
artur-zawlocki 2014-10-13 15:37:40 +01:00
parent 7c78ecbdb2
commit a2a496ebce
4 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1 @@
600a600181038060025900

27
evmcc/test/jump/loop1.lll Normal file
View file

@ -0,0 +1,27 @@
;; Produces 1 2 3 4 5 6 7 8 9 10 on the stack and exits
(asm
10
;; 2
1
DUP2
SUB
DUP1
2
JUMPI
;; stack = 1 2 3 4 5 6 7 8 9 10
;;0
;;MSTORE
;;1
;;MSTORE
;;2
;;MSTORE
;;3
;;MSTORE
STOP
)

View file

@ -0,0 +1 @@
600a80600160800360a060025900

28
evmcc/test/jump/loop2.lll Normal file
View file

@ -0,0 +1,28 @@
;; Produces 1 2 3 4 5 6 7 8 9 10 on the stack and exits
(asm
10
;; 2
DUP1
1
SWAP
SUB
DUP
2
JUMPI
;; stack = 1 2 3 4 5 6 7 8 9 10
;;0
;;MSTORE
;;1
;;MSTORE
;;2
;;MSTORE
;;3
;;MSTORE
STOP
)