Skip to content

Commit e5a605c

Browse files
committed
Issue #27: adding setcc test.
1 parent ea30022 commit e5a605c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
define i256 @sccweqand(i256 %a, i256 %b) {
2+
%t1 = and i256 %a, %b
3+
%t2 = icmp eq i256 %t1, 0
4+
%t3 = zext i1 %t2 to i256
5+
ret i256 %t3
6+
}
7+

tools/evm-test/evm_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ def run_string_input(name: str, inputs: List[str], output: str, function: str) -
227227
"input": ["0x00001234", "0x00004321"],
228228
"output": "0x0000000000000000000000000000000000000000000000000000000004c5f4b4",
229229
},
230+
"setcc.ll" : {
231+
"input": ["0xff00ff00", "0x00ff00ff"],
232+
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
233+
},
230234
}
231235

232236
def assembly_tests() -> List[str]:

0 commit comments

Comments
 (0)