From ea300227f5e17c5931d3f879f398802cd128b2ba Mon Sep 17 00:00:00 2001 From: Alan Li Date: Sat, 23 Nov 2019 11:11:29 -0500 Subject: [PATCH] Issue #27: Adding simple_test_8.ll. --- .../EVM/runtime_tests/simple_test_8.ll | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/CodeGen/EVM/runtime_tests/simple_test_8.ll diff --git a/test/CodeGen/EVM/runtime_tests/simple_test_8.ll b/test/CodeGen/EVM/runtime_tests/simple_test_8.ll new file mode 100644 index 0000000000000..b6efae06954f0 --- /dev/null +++ b/test/CodeGen/EVM/runtime_tests/simple_test_8.ll @@ -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 +} +