Skip to content

Commit

Permalink
Issue #27: Adding simple_test_8.ll.
Browse files Browse the repository at this point in the history
  • Loading branch information
lialan committed Nov 23, 2019
1 parent cb84829 commit ea30022
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/CodeGen/EVM/runtime_tests/simple_test_8.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
;; simple comparison
define i256 @abcd(i256 %a, i256 %b) {
entry:
%0 = alloca i256
%1 = icmp ule i256 %a, %b
br i1 %1, label %true, label %false

true:
store i256 %a, i256* %0
br label %finally

false:
store i256 %b, i256* %0
br label %finally

finally:
%2 = load i256, i256* %0
ret i256 %2
}

0 comments on commit ea30022

Please sign in to comment.