├── cottontail-compiler ├── test │ ├── README │ ├── read.test32 │ ├── test_file_input │ ├── if.test32 │ ├── strings.test32 │ ├── loop.test32 │ ├── arrays.test32 │ ├── floats.test32 │ ├── globals.test32 │ ├── structs.test32 │ ├── switch.test32 │ ├── large_alloc.test32 │ ├── uadd_sat.test32 │ ├── usub_sat.test32 │ ├── integers.test32 │ ├── pointers.test32 │ ├── memcpy.test32 │ ├── bswap.test32 │ └── file_input.test32 ├── runtime │ ├── .clang-format │ ├── src │ │ ├── backends │ │ │ └── qsym │ │ │ │ └── qsym │ │ │ │ ├── vagrant │ │ │ │ └── .gitignore │ │ │ │ ├── tests │ │ │ │ ├── assembly │ │ │ │ │ ├── add │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── set │ │ │ │ │ │ ├── sets │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── setz │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── setnb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── setnbe │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── seto │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── setp │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── setnp │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── setb │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── setl │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── setbe │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── setle │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── setnl │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── setnle │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── setns │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── setnz │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ └── set.h │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── and │ │ │ │ │ │ └── and │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── ashr │ │ │ │ │ │ └── ashr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── bswap │ │ │ │ │ │ └── bswap │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── bt │ │ │ │ │ │ ├── bt-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── bt-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── cmp │ │ │ │ │ │ ├── cmp-jnb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── cmp-jz │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── cmp-jb │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmp-jl │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmp-jnl │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmp-jns │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmp-js │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmp-jbe │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmp-jnz │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmp-jnbe │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ └── cmp.mk │ │ │ │ │ ├── dec │ │ │ │ │ │ ├── dec-m │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── dec-r │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── inc │ │ │ │ │ │ ├── inc-m │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── inc-r │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── lea │ │ │ │ │ │ ├── lea-index │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── lea-base │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ └── lea-disp │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── loop │ │ │ │ │ │ ├── loop │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── loop2 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── loop3 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── lshr │ │ │ │ │ │ └── lshr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── movsd │ │ │ │ │ │ ├── movsb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── movsd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── movsw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── rep-movsd │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── movsxd │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── mul │ │ │ │ │ │ ├── mul-byte │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── test │ │ │ │ │ │ ├── mul-word │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── test │ │ │ │ │ │ └── mul-dword │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── test │ │ │ │ │ ├── neg │ │ │ │ │ │ └── neg │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── not │ │ │ │ │ │ └── not │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── or │ │ │ │ │ │ └── or │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── push │ │ │ │ │ │ └── push-m │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── rol │ │ │ │ │ │ └── rol │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── ror │ │ │ │ │ │ └── ror │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── shl │ │ │ │ │ │ └── shl │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── sub │ │ │ │ │ │ └── sub │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── xchg │ │ │ │ │ │ ├── xchg-mr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── xchg-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── xchg-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── xor │ │ │ │ │ │ ├── xor │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── xor-clear │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── bsf │ │ │ │ │ │ ├── bsf-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── bsf-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── bsr │ │ │ │ │ │ ├── bsr-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── bsr-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── eflags │ │ │ │ │ │ ├── add_jb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── add_jo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── dec_jb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── dec_jo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── inc_jo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── rol_jo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── ror_jo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── shl_jo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── shr_jo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── sub_jo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── add_jl │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── imul │ │ │ │ │ │ ├── imul-byte-m │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── imul-byte-r │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── imul-word-m │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── imul-word-r │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── imul-dword-m │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── imul-dword-r │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── imul-dword-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── imul-dword-rmi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── imul-dword-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── imul-dword-rri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pop │ │ │ │ │ │ └── pop │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── shld │ │ │ │ │ │ ├── shld-m-cl │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── shld-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── shld-r-cl │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── shld-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── shr │ │ │ │ │ │ ├── shr-m-cl │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── shr-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── shr-r-cl │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── shr-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── shrd │ │ │ │ │ │ ├── shrd-m-cl │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── shrd-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── shrd-r-cl │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── shrd-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── xmm │ │ │ │ │ │ ├── memcpy │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── movdqu │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── pxor │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── adc │ │ │ │ │ │ ├── adc-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── adc-mr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── adc-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── adc-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── adc-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── cgc │ │ │ │ │ │ ├── CROMU_00043 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── CROMU_00001 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── CROMU_00019 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── CROMU_00030 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── NRFIN_00016 │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── cmov │ │ │ │ │ │ ├── cmovnb-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── cmovnb-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── cmovnbe-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── cmovb-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovb-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovbe-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovbe-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovl-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovl-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovle-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovle-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovnl-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovnl-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovns-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovns-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovnz-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovnz-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovs-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovs-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovz-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovz-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovnbe-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovnle-rm │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmovnle-rr │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── cmov.mk │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── cmps │ │ │ │ │ │ ├── cmpsw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── cmpsb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── cmpsd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── cmpsq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── div │ │ │ │ │ │ ├── div-dword-m │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── div-dword-r │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── idiv │ │ │ │ │ │ ├── idiv-dword-m │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── idiv-dword-r │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pcmpeq │ │ │ │ │ │ ├── pcmpeqd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── pcmpeqw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── pcmpeqb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── sbb │ │ │ │ │ │ ├── sbb-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── sbb-mr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── sbb-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── sbb-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── sbb-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── xadd │ │ │ │ │ │ ├── xadd-rm │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── xadd-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── btc │ │ │ │ │ │ ├── btc-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── btc-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── btr │ │ │ │ │ │ ├── btr-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── btr-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── bts │ │ │ │ │ │ ├── bts-mi │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── bts-ri │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── cbw │ │ │ │ │ │ ├── cbw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── cdqe │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── cwde │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── cmpxchg │ │ │ │ │ │ ├── cmpxchg-true-mr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── cmpxchg-true-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── cmpxchg-false-mr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── cmpxchg-false-rr │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── cwd │ │ │ │ │ │ ├── cdq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── cqo │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── cwd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── movs │ │ │ │ │ │ ├── movsb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── movsd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── movsq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── movsw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── scas │ │ │ │ │ │ ├── scasb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── scasd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── scasq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── scasw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── glibc │ │ │ │ │ │ ├── malloc │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── malloc2 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── movhpd │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── movlpd │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── movlps │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── padd │ │ │ │ │ │ ├── paddb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── paddw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pmaxub │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pminub │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── psll │ │ │ │ │ │ ├── pslld │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── psllq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── psllw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── psra │ │ │ │ │ │ ├── psrad │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── psraw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── psrl │ │ │ │ │ │ ├── psrld │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── psrlq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── psrlw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── psrldq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── psub │ │ │ │ │ │ ├── psubb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── psubd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── psubw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── main.c │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pack │ │ │ │ │ │ ├── packssdw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── packsswb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── packudw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── packuswb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pextr │ │ │ │ │ │ ├── pextrb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ ├── pextrd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ │ └── pextrw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── pshuf │ │ │ │ │ │ ├── pshufb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── pshufb2 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── pshufb3 │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── pshufd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── pshufhw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── pshuflw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pmovmskb │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── main.c │ │ │ │ │ ├── punpckh │ │ │ │ │ │ ├── punpckhbw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── punpckhdq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── punpckhqdq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── punpckhwd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── punpckl │ │ │ │ │ │ ├── punpcklbw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── punpckldq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── punpcklqdq │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── punpcklwd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── Makefile.common │ │ │ │ │ ├── movss │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pmaddwd │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── pcmpgt │ │ │ │ │ │ ├── pcmpgtb │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── pcmpgtd │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── pcmpgtw │ │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ └── pmul │ │ │ │ │ │ ├── pmulhuw │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── pmulhw │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── pmulld │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ └── pmullw │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ ├── syscall │ │ │ │ │ ├── mremap │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── _pread │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ └── _socketpair │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ ├── schedule │ │ │ │ │ ├── dup │ │ │ │ │ │ ├── inputs │ │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── main.c │ │ │ │ │ └── context_sensitive │ │ │ │ │ │ ├── inputs │ │ │ │ │ │ └── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ ├── regress │ │ │ │ │ └── null-deref-DependencyForest-addNode │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ ├── asm.s │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── main.c │ │ │ │ ├── avx2 │ │ │ │ │ ├── vmovlps │ │ │ │ │ │ ├── input.bin │ │ │ │ │ │ └── Makefile │ │ │ │ │ ├── vpadd │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpor │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpxor │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpackssdw │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpcmpeq │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpmaddwd │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpmaxsb │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpmulhw │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpmulld │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpshufb │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpshufhw │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpshuflw │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ ├── vpsrad │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ │ └── vinserti128 │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── input.bin │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile.common │ │ │ │ ├── qsym │ │ │ │ ├── pintool │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── third_party │ │ │ │ │ │ ├── pin │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ └── libdft │ │ │ │ │ │ │ ├── api.h │ │ │ │ │ │ │ └── syscall_hook.h │ │ │ │ │ ├── analysis.h │ │ │ │ │ ├── compiler.h │ │ │ │ │ └── trace.h │ │ │ │ └── __init__.py │ │ │ │ ├── .gitmodules │ │ │ │ ├── TODO.md │ │ │ │ ├── .gitignore │ │ │ │ └── Dockerfile │ │ └── bindings │ │ │ └── README │ └── .dockerignore ├── util │ └── symcc_fuzzing_helper │ │ └── .gitignore ├── build-cottontail-compiler.sh └── build-cottontail-compiler-docker.sh ├── docs ├── overview.png ├── cottontail-logo.png └── cottontail-logo-focus.png ├── benchmark-test └── input │ └── seed └── scripts └── collect_coverage.sh /cottontail-compiler/test/README: -------------------------------------------------------------------------------- 1 | ../docs/Testing.txt -------------------------------------------------------------------------------- /cottontail-compiler/runtime/.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | BasedOnStyle: LLVM 3 | ... 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/vagrant/.gitignore: -------------------------------------------------------------------------------- 1 | /.vagrant 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/add/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/sets/input.bin: -------------------------------------------------------------------------------- 1 | 1234 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setz/input.bin: -------------------------------------------------------------------------------- 1 | 1234 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/.gitignore: -------------------------------------------------------------------------------- 1 | main 2 | 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/and/and/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/ashr/ashr/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bswap/bswap/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bt/bt-ri/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnb/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jz/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/dec/dec-m/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/dec/dec-r/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/inc/inc-m/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/inc/inc-r/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-index/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop2/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop3/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lshr/lshr/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsb/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsd/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsw/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsxd/input.bin: -------------------------------------------------------------------------------- 1 | AAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-byte/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-word/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/neg/neg/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/not/not/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/or/or/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/push/push-m/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/rol/rol/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/ror/ror/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnb/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnbe/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/seto/input.bin: -------------------------------------------------------------------------------- 1 | AAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setp/input.bin: -------------------------------------------------------------------------------- 1 | AAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shl/shl/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sub/sub/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-mr/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-rm/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-rr/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xor/xor/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/syscall/mremap/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsf/bsf-rm/input.bin: -------------------------------------------------------------------------------- 1 | AAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsf/bsf-rr/input.bin: -------------------------------------------------------------------------------- 1 | AAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsr/bsr-rm/input.bin: -------------------------------------------------------------------------------- 1 | AAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsr/bsr-rr/input.bin: -------------------------------------------------------------------------------- 1 | AAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jb/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jo/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/dec_jb/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/dec_jo/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/inc_jo/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/rol_jo/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/ror_jo/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/shl_jo/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/shr_jo/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/sub_jo/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-byte-m/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-byte-r/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-word-m/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-word-r/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-dword/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pop/pop/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnp/input.bin: -------------------------------------------------------------------------------- 1 | 1234 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-m-cl/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-mi/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-r-cl/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-ri/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-m-cl/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-mi/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-r-cl/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-ri/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-m-cl/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-mi/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-r-cl/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-ri/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xmm/memcpy/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xmm/movdqu/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xor/xor-clear/input.bin: -------------------------------------------------------------------------------- 1 | aaaa 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/schedule/dup/inputs/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/syscall/_pread/input.bin: -------------------------------------------------------------------------------- 1 | AAAABBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/syscall/_socketpair/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docs/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/docs/overview.png -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-mi/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-mr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-ri/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-rm/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-rr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00043/input.bin: -------------------------------------------------------------------------------- 1 | 4444 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnb-rm/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnb-rr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnbe-rm/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmps/cmpsw/input.bin: -------------------------------------------------------------------------------- 1 | 12345678 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/div/div-dword-m/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/div/div-dword-r/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/idiv/idiv-dword-m/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/idiv/idiv-dword-r/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-m/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-r/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-rm/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-rmi/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-rr/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-rri/input.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-mi/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-mr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-ri/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-rm/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-rr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xadd/xadd-rm/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xadd/xadd-rr/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bt/bt-mi/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btc/btc-mi/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btc/btc-ri/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btr/btr-mi/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btr/btr-ri/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bts/bts-mi/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bts/bts-ri/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cbw/cbw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cbw/cdqe/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cbw/cwde/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00001/input.bin: -------------------------------------------------------------------------------- 1 | bbbbbbbb 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00019/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmps/cmpsb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmps/cmpsd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmps/cmpsq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmpxchg/cmpxchg-true-mr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmpxchg/cmpxchg-true-rr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cwd/cdq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cwd/cqo/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cwd/cwd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/scas/scasb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/scas/scasd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/scas/scasq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/scas/scasw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAABBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmpxchg/cmpxchg-false-mr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmpxchg/cmpxchg-false-rr/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/glibc/malloc/input.bin: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /docs/cottontail-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/docs/cottontail-logo.png -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/regress/null-deref-DependencyForest-addNode/input.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/schedule/context_sensitive/inputs/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/qsym/pintool/.gitignore: -------------------------------------------------------------------------------- 1 | /obj-ia32 2 | /obj-intel64 3 | /*__gen.cpp 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00030/input.bin: -------------------------------------------------------------------------------- 1 | xxxxxxxxcpfolmgijdgdlain 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/glibc/malloc2/input.bin: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movhpd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movlpd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movlps/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/padd/paddb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/padd/paddw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmaxub/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pminub/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psll/pslld/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psll/psllq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psll/psllw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psra/psrad/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psra/psraw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psrl/psrld/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psrl/psrlq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psrl/psrlw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xmm/pxor/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docs/cottontail-logo-focus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/docs/cottontail-logo-focus.png -------------------------------------------------------------------------------- /benchmark-test/input/seed: -------------------------------------------------------------------------------- 1 | {"name":"test","value":42,"nested":{"array":[1,2,3],"flag":true},"extra":"Lorem ipsum dolor sit amet"} -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/add/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsxd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pack/packssdw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pack/packsswb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pack/packudw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pack/packuswb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pminub/Makefile: -------------------------------------------------------------------------------- 1 | TOP=.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufb2/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufb3/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psrl/psrldq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vmovlps/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAABBBBBBBBCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/.gitignore: -------------------------------------------------------------------------------- 1 | main 2 | *.o 3 | 4 | # results from qsym 5 | stat 6 | 00000* 7 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/and/and/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/ashr/ashr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bt/bt-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bt/bt-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cbw/cbw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cbw/cdqe/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cbw/cwde/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cwd/cdq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cwd/cqo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cwd/cwd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/dec/dec-m/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/dec/dec-r/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/inc/inc-m/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/inc/inc-r/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lshr/lshr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movhpd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movlpd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movlps/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/neg/neg/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/not/not/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/or/or/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmovmskb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubb/main.c: -------------------------------------------------------------------------------- 1 | #include "psub.h" 2 | 3 | TEST_PUSB(psubb) 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubd/main.c: -------------------------------------------------------------------------------- 1 | #include "psub.h" 2 | 3 | TEST_PUSB(psubd) 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubw/main.c: -------------------------------------------------------------------------------- 1 | #include "psub.h" 2 | 3 | TEST_PUSB(psubw) 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckh/punpckhbw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckh/punpckhdq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckh/punpckhqdq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckh/punpckhwd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckl/punpcklbw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckl/punpckldq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckl/punpcklqdq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckl/punpcklwd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/rol/rol/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/ror/ror/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shl/shl/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sub/sub/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xor/xor/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/syscall/_pread/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/syscall/mremap/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/read.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/read.c -o %t_32 2 | RUN: echo b | %t_32 2>&1 | %filecheck %S/read.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/Makefile.common: -------------------------------------------------------------------------------- 1 | TOP := $(TOP)/.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-mr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsf/bsf-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsf/bsf-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsr/bsr-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsr/bsr-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bswap/bswap/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btc/btc-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btc/btc-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btr/btr-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btr/btr-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bts/bts-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bts/bts-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmps/cmpsb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmps/cmpsd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmps/cmpsq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmps/cmpsw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jl/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/dec_jb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/dec_jo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/inc_jo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/rol_jo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/ror_jo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/shl_jo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/shr_jo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/sub_jo/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movss/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-byte/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-dword/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-word/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmaddwd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psra/psrad/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psra/psraw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-mr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/scas/scasb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/scas/scasd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/scas/scasq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/scas/scasw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-m-cl/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-r-cl/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-m-cl/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-r-cl/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-m-cl/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-mi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-r-cl/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-ri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xadd/xadd-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xadd/xadd-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-mr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xor/xor-clear/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/syscall/_socketpair/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/div/div-dword-m/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/div/div-dword-r/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/idiv/idiv-dword-m/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/idiv/idiv-dword-r/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-byte-m/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-byte-r/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-m/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-r/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-rmi/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-dword-rri/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-word-m/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/imul/imul-word-r/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqd/main.c: -------------------------------------------------------------------------------- 1 | #include "pcmpeq.h" 2 | 3 | TEST_PCMPEQ(pcmpeqd) 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpgt/pcmpgtb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpgt/pcmpgtd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpgt/pcmpgtw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmul/pmulhuw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmul/pmulhw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmul/pmulld/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmul/pmullw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufhw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshuflw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckh/punpckhbw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckh/punpckhdq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckh/punpckhqdq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckh/punpckhwd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckl/punpcklbw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckl/punpckldq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckl/punpcklqdq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/punpckl/punpcklwd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpadd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpor/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpxor/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/schedule/dup/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/test_file_input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/test/test_file_input -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovb-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovb-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovbe-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovbe-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovl-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovl-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovle-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovle-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnb-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnb-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnl-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnl-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovns-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovns-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnz-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnz-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovs-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovs-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovz-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovz-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmpxchg/cmpxchg-false-mr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmpxchg/cmpxchg-false-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmpxchg/cmpxchg-true-mr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmpxchg/cmpxchg-true-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-base/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-disp/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../../ 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop2/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../../ 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop3/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../../ 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsb/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsd/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsw/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movss/Makefile: -------------------------------------------------------------------------------- 1 | TOP=.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqb/main.c: -------------------------------------------------------------------------------- 1 | #include "pcmpeq.h" 2 | 3 | TEST_PCMPEQ(pcmpeqb) 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqw/main.c: -------------------------------------------------------------------------------- 1 | #include "pcmpeq.h" 2 | 3 | TEST_PCMPEQ(pcmpeqb) 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmaxub/Makefile: -------------------------------------------------------------------------------- 1 | TOP=.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pop/pop/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/push/push-m/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpackssdw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpcmpeq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpmaddwd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpmaxsb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpmulhw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpmulld/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpshufb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpshufhw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpshuflw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpsrad/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/test/if.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/if.c -o %t_32 2 | RUN: echo -ne "\x05\x00\x00\x00" | %t_32 2>&1 | %filecheck %S/if.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/strings.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/strings.c -o %t_32 2 | RUN: echo -n test | %t_32 2>&1 | %filecheck %S/strings.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/qsym/pintool/third_party/pin/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../third_party/pin-2.14-71313-gcc.4.4.7-linux/LICENSE -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00001/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00019/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00030/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00043/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/NRFIN_00016/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnbe-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnbe-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnle-rm/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnle-rr/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(CURDIR)/../cmov.mk 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/glibc/malloc/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-index/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/rep-movsd/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmaddwd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS = -I../ 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS = -I../ 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psub/psubw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS = -I../ 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setb/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setb); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setl/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setl); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/seto/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(seto); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setp/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setp); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/sets/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(sets); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setz/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setz); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xmm/memcpy/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xmm/movdqu/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xmm/pxor/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vinserti128/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/test/loop.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/loop.c -o %t_32 2 | RUN: echo -ne "\x00\x00\x00\x05" | %t_32 2>&1 | %filecheck %S/loop.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmov.mk: -------------------------------------------------------------------------------- 1 | include $(TOP)/Makefile.common 2 | CFLAGS += -I$(TOP)/assembly/cmov 3 | 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovb-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovb); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovb-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovb); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovl-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovl); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovl-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovl); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovs-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovs); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovs-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovs); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovz-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovz); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovz-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovz); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jb/main.c: -------------------------------------------------------------------------------- 1 | #include "cmp.h" 2 | 3 | int main(void) { 4 | TEST_JCC(jb); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jl/main.c: -------------------------------------------------------------------------------- 1 | #include "cmp.h" 2 | 3 | int main(void) { 4 | TEST_JCC(jl); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnl/main.c: -------------------------------------------------------------------------------- 1 | #include "cmp.h" 2 | 3 | int main(void) { 4 | TEST_JCC(jnl); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jns/main.c: -------------------------------------------------------------------------------- 1 | #include "cmp.h" 2 | 3 | int main(void) { 4 | TEST_JCC(jns); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-js/main.c: -------------------------------------------------------------------------------- 1 | #include "cmp.h" 2 | 3 | int main(void) { 4 | TEST_JCC(js); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/glibc/malloc2/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pack/packssdw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pack/packsswb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pack/packudw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pack/packuswb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/padd/paddb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/padd/paddw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS = -I../ 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS = -I../ 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpeq/pcmpeqw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS = -I../ 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpgt/pcmpgtb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpgt/pcmpgtd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pcmpgt/pcmpgtw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmul/pmulhuw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmul/pmulhw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmul/pmulld/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmul/pmullw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufb/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mssse3 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufb2/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mssse3 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufd/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufhw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshuflw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psll/pslld/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psll/psllq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psll/psllw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psrl/psrld/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psrl/psrldq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psrl/psrlq/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psrl/psrlw/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setbe/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setbe); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setle/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setle); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnb/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setnb); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnbe/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setnbe); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnl/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setnl); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnle/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setnle); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnp/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setnp); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setns/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setns); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnz/main.c: -------------------------------------------------------------------------------- 1 | #include "set.h" 2 | 3 | int main() { 4 | GET_FLAG(setnz); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vmovlps/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mavx2 -msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/schedule/context_sensitive/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | include $(TOP)/Makefile.common 3 | 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovbe-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovbe); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovbe-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovbe); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovle-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovle); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovle-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovle); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnb-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovnb); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnb-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovnb); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnbe-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovnbe); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnbe-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovbe); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnl-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovnl); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnl-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovnl); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnle-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovnle); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnle-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovnle); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovns-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovs); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovns-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovns); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnz-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RM(cmovnz); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnz-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "cmov.h" 2 | 3 | int main() { 4 | CMOV_RR(cmovnz); 5 | } 6 | -------------------------------------------------------------------------------- /cottontail-compiler/test/arrays.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/arrays.c -o %t_32 2 | RUN: echo -ne "\x01\x02\x03\x04\x00" | %t_32 2>&1 | %filecheck %S/arrays.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/floats.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/floats.c -o %t_32 2 | RUN: echo -ne "\x00\x00\x00\x05" | %t_32 2>&1 | %filecheck %S/floats.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/globals.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/globals.c -o %t_32 2 | RUN: echo -ne "\x00\x00\x00\x05" | %t_32 2>&1 | %filecheck %S/globals.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/structs.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/structs.c -o %t_32 2 | RUN: echo -ne "\x00\x00\x00\x05" | %t_32 2>&1 | %filecheck %S/structs.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/switch.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/switch.c -o %t_32 2 | RUN: echo -ne "\x00\x00\x00\x05" | %t_32 2>&1 | %filecheck %S/switch.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "third_party/z3"] 2 | path = third_party/z3 3 | url = https://github.com/Z3Prover/z3 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pshuf/pshufb3/Makefile: -------------------------------------------------------------------------------- 1 | TOP=../.. 2 | CFLAGS=-mssse3 -msse4.1 3 | include $(TOP)/Makefile.common 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/TODO.md: -------------------------------------------------------------------------------- 1 | - Clean up code 2 | - Support both 32bit / 64bit 3 | - Add function wrapper: strcmp, strncmp, strstr, memcmp 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jb/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jbe/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jl/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnb/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnl/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jns/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnz/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-js/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jz/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/test/large_alloc.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 %S/large_alloc.c -o %t_32 2 | RUN: echo -ne "\x00\x00\x00\x2a" | %t_32 2>&1 | %filecheck %S/large_alloc.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/uadd_sat.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/uadd_sat.ll -o %t_32 2 | RUN: echo -ne "\x05\x00\x00\x00\x00\x00\x00\x00" | %t_32 2>&1 | %filecheck %s 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/usub_sat.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/usub_sat.ll -o %t_32 2 | RUN: echo -ne "\x05\x00\x00\x00\x00\x00\x00\x00" | %t_32 2>&1 | %filecheck %s 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnbe/Makefile: -------------------------------------------------------------------------------- 1 | # use push for arguments 2 | TOP = $(CURDIR)/../.. 3 | include $(CURDIR)/../cmp.mk 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setb/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setbe/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setl/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setle/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnb/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnl/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnp/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setns/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnz/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/seto/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setp/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/sets/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setz/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpadd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpor/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpxor/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jbe/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "cmp.h" 3 | 4 | int main(void) { 5 | TEST_JCC(jbe); 6 | } 7 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnb/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "cmp.h" 3 | 4 | int main(void) { 5 | TEST_JCC(jnb); 6 | } 7 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnbe/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "cmp.h" 3 | 4 | int main(void) { 5 | TEST_JCC(jnbe); 6 | } 7 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnz/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "cmp.h" 3 | 4 | int main(void) { 5 | TEST_JCC(jnz); 6 | } 7 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jz/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "cmp.h" 3 | 4 | int main(void) { 5 | TEST_JCC(jz); 6 | } 7 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnbe/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnle/Makefile: -------------------------------------------------------------------------------- 1 | TOP = $(CURDIR)/../.. 2 | CFLAGS = -I$(CURDIR)/.. 3 | include $(TOP)/Makefile.common 4 | 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpackssdw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpcmpeq/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpmaddwd/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpmaxsb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpmulhw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpmulld/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpshufb/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpshufhw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpshuflw/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vpsrad/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 | -------------------------------------------------------------------------------- /cottontail-compiler/test/integers.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/integers.c -o %t_32 2 | RUN: echo -ne "\x05\x00\x00\x00\x00\x00\x00\x00" | %t_32 2>&1 | %filecheck %S/integers.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/test/pointers.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/pointers.c -o %t_32 2 | RUN: echo -ne "\x00\x00\x00\x05\x12\x34\x56\x78" | %t_32 2>&1 | %filecheck %S/pointers.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/qsym/__init__.py: -------------------------------------------------------------------------------- 1 | import afl 2 | from executor import Executor 3 | from minimizer import TestcaseMinimizer 4 | from utils import * 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/avx2/vinserti128/input.bin: -------------------------------------------------------------------------------- 1 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 | -------------------------------------------------------------------------------- /cottontail-compiler/test/memcpy.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 -O2 %S/memcpy.c -o %t_32 2 | RUN: echo -ne "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03" | %t_32 2>&1 | %filecheck %S/memcpy.c 3 | -------------------------------------------------------------------------------- /cottontail-compiler/util/symcc_fuzzing_helper/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | /target/ 4 | 5 | # These are backup files generated by rustfmt 6 | **/*.rs.bk -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp.mk: -------------------------------------------------------------------------------- 1 | include $(TOP)/Makefile.common 2 | CMP = $(TOP)/assembly/cmp 3 | CFLAGS += -I$(CMP) 4 | CFLAGS := $(filter-out -std=c99,$(CFLAGS)) 5 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/regress/null-deref-DependencyForest-addNode/asm.s: -------------------------------------------------------------------------------- 1 | .section .text 2 | .globl asm_fn 3 | .type asm_fn, @function 4 | asm_fn: 5 | jz next 6 | next: 7 | ret 8 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/NRFIN_00016/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-byte/test: -------------------------------------------------------------------------------- 1 | (declare-const x (_ BitVec 32)) 2 | (declare-const y (_ BitVec 32)) 3 | (assert (= (bvmul x y) #xdeadbeef)) 4 | (check-sat) 5 | (get-model) 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-dword/test: -------------------------------------------------------------------------------- 1 | (declare-const x (_ BitVec 32)) 2 | (declare-const y (_ BitVec 32)) 3 | (assert (= (bvmul x y) #xdeadbeef)) 4 | (check-sat) 5 | (get-model) 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/mul/mul-word/test: -------------------------------------------------------------------------------- 1 | (declare-const x (_ BitVec 32)) 2 | (declare-const y (_ BitVec 32)) 3 | (assert (= (bvmul x y) #xdeadbeef)) 4 | (check-sat) 5 | (get-model) 6 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmovmskb/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmovmskb/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setb/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setb/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setbe/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setbe/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setl/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setl/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setle/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setle/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnl/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnl/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setns/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setns/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnz/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnz/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jb/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jb/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jbe/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jbe/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jl/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jl/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnbe/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnbe/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnl/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnl/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jns/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jns/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnz/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-jnz/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-js/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmp/cmp-js/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-base/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-base/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-disp/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-disp/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnle/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/setnle/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovb-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovb-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovb-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovb-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovbe-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovbe-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovbe-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovbe-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovl-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovl-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovl-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovl-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovle-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovle-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovle-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovle-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnl-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnl-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnl-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnl-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovns-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovns-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovns-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovns-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnz-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnz-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnz-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnz-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovs-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovs-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovs-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovs-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovz-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovz-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovz-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovz-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jl/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jl/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnbe-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnbe-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnle-rm/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnle-rm/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnle-rr/input.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cottontail-Proj/cottontail/HEAD/cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/cmovnle-rr/input.bin -------------------------------------------------------------------------------- /cottontail-compiler/test/bswap.test32: -------------------------------------------------------------------------------- 1 | RUN: %symcc -m32 %S/bswap.c -o %t_32 2 | RUN: echo -ne "\x04\x03\x02\x01" | %t_32 2>&1 | %filecheck %S/bswap.c 3 | RUN: %symcc %S/bswap.c -m32 -S -emit-llvm -o - | FileCheck --check-prefix=BITCODE %S/bswap.c 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/.gitignore: -------------------------------------------------------------------------------- 1 | # pin 2 | pin.log 3 | pintool.log 4 | 5 | # vim 6 | *.swp 7 | *.swo 8 | 9 | # setup.py 10 | *.egg-info 11 | /dist 12 | /build 13 | /venv 14 | /.cache 15 | 16 | # pytest 17 | .pytest_cache 18 | -------------------------------------------------------------------------------- /cottontail-compiler/test/file_input.test32: -------------------------------------------------------------------------------- 1 | RUN: /bin/echo -ne "\x00\x00\x00\x05aaaa" > %T/%basename_t.input 2 | RUN: %symcc -m32 -O2 %S/file_input.c -o %t_32 3 | RUN: env SYMCC_INPUT_FILE=%T/%basename_t.input %t_32 %T/%basename_t.input 2>&1 | %filecheck %S/file_input.c 4 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:16.04 2 | 3 | RUN apt-get update 4 | RUN apt-get install -y git build-essential sudo 5 | 6 | RUN mkdir -p /workdir/qsym 7 | 8 | WORKDIR /workdir/qsym 9 | COPY . /workdir/qsym 10 | 11 | RUN ./setup.sh 12 | RUN pip install . 13 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/qsym/pintool/third_party/libdft/api.h: -------------------------------------------------------------------------------- 1 | #ifndef QSYM_API_H_ 2 | #define QSYM_API_H_ 3 | 4 | #include 5 | #include "pin.H" 6 | 7 | namespace qsym { 8 | 9 | void initializeQsym(); 10 | 11 | } // namespace qsym 12 | 13 | #endif // QSYM_API_H_ 14 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/regress/null-deref-DependencyForest-addNode/Makefile: -------------------------------------------------------------------------------- 1 | all: main 2 | 3 | main: asm.o main.o 4 | gcc $^ -o $@ 5 | 6 | asm.o: asm.s 7 | as asm.s -o asm.o 8 | 9 | main.o: main.c 10 | gcc -c main.c -o main.o 11 | 12 | clean: 13 | rm -rf *.o main 14 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cmov/Makefile: -------------------------------------------------------------------------------- 1 | SUBDIRS := $(wildcard */.) 2 | 3 | all: 4 | for dir in $(SUBDIRS) ; do \ 5 | $(MAKE) -C $$dir ; \ 6 | done 7 | 8 | clean: 9 | for dir in $(SUBDIRS) ; do \ 10 | $(MAKE) -C $$dir clean; \ 11 | done 12 | 13 | .PHONY: all 14 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/schedule/dup/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "common.h" 5 | 6 | int main() { 7 | int x; 8 | 9 | read(0, &x, sizeof(x)); 10 | 11 | if (x == 0xdeadbeef) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shl/shl/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | 10 | if ((a << 1) == 0xdeadbeee) 11 | good(); 12 | else 13 | bad(); 14 | } 15 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/Makefile.common: -------------------------------------------------------------------------------- 1 | TARGET = main 2 | SRCS = $(wildcard *.c) 3 | OBJS = $(SRCS:.c=.o) 4 | CFLAGS += -std=c99 -O0 -I$(TOP) 5 | 6 | all: $(TARGET) 7 | 8 | $(TARGET): $(OBJS) 9 | $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 10 | 11 | clean: 12 | rm -f $(OBJS) $(TARGET) $(BC) 13 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/not/not/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | 11 | if (~a == b) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/and/and/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | if ((a & b) == 0xdeadbeef) 11 | good(); 12 | else 13 | bad(); 14 | } 15 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/rep-movsd/input.bin: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/or/or/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | 11 | if ((a | b) == 0xdeadbeef) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop2/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "common.h" 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | 8 | for (int i = 0; i < 0x1000; i++) { 9 | n += i; 10 | } 11 | 12 | if (n == 0xdeadbeef) 13 | good(); 14 | else 15 | bad(); 16 | } 17 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-ri/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | uint64_t a, b; 9 | read(0, &a, sizeof(a)); 10 | 11 | if ((a << 8) == 0xdeadbeef00) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsf/bsf-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main() { 6 | int a = 0; 7 | read(0, &a, sizeof(a)); 8 | 9 | __asm__("bsf %0, %0\n" 10 | : "+r"(a)); 11 | 12 | if (a == 12) 13 | good(); 14 | else 15 | bad(); 16 | } 17 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsr/bsr-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main() { 6 | int a = 0; 7 | read(0, &a, sizeof(a)); 8 | 9 | __asm__("bsr %0, %0\n" 10 | : "+r"(a)); 11 | 12 | if (a == 12) 13 | good(); 14 | else 15 | bad(); 16 | } 17 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xor/xor/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | 11 | if (a != 0 && ((a ^ b) == 0xdeadbeef)) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/qsym/pintool/analysis.h: -------------------------------------------------------------------------------- 1 | #ifndef QSYM_ANALYZE_H_ 2 | #define QSYM_ANALYZE_H_ 3 | 4 | #include "pin.H" 5 | #include "logging.h" 6 | 7 | namespace qsym { 8 | 9 | void 10 | analyzeTrace(TRACE, VOID*); 11 | 12 | void 13 | analyzeInstruction(INS); 14 | 15 | } // namespace qsym 16 | 17 | #endif // QSYM_ANALYZE_H_ 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/add/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | 11 | if (a != 0 && b != 0 && (a + b) == 0xdeadbeef) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/ashr/ashr/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | 11 | if (b == 1 && ((a >> b) == 0xdeadbeef)) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lshr/lshr/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | unsigned int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | 11 | if (b == 1 && ((a >> b) == 0x5eadbeef)) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sub/sub/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | 11 | if (a != 0 && b != 0 && (a - b) == 0xdeadbeef) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/build-cottontail-compiler.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #export PATH=/usr/lib/llvm-11/bin:$PATH 4 | export CC=clang 5 | export CXX=clang++ 6 | export LLVM_DIR=$(llvm-config --cmakedir) 7 | 8 | # build cottontail compiler 9 | mkdir build && cd build 10 | 11 | cmake -DCottontail_RT_BACKEND=qsym -DZ3_TRUST_SYSTEM_VERSION=on .. 12 | 13 | make -j12 14 | 15 | 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "common.h" 3 | 4 | int main() { 5 | int v = 0; 6 | int n; 7 | read(0, &n, sizeof(n)); 8 | 9 | for (int i = 0; i < 0x1000; i++) { 10 | v += i * i; 11 | } 12 | 13 | if (n + v == 0xdeadbeef) 14 | good(); 15 | else 16 | bad(); 17 | } 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/neg/neg/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | int a, b; 8 | read(0, &a, sizeof(a)); 9 | read(0, &b, sizeof(b)); 10 | 11 | // avoid a trivial case 12 | if (b != 0 && -a == b) 13 | good(); 14 | else 15 | bad(); 16 | } 17 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/glibc/malloc/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main(void) 6 | { 7 | int size; 8 | read(0, &size, sizeof(size)); 9 | int* m = (int*)malloc(size); 10 | read(0, m, size); 11 | if (m[0] == 0xdeadbeef) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /scripts/collect_coverage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | source_path=$1 4 | gcovr -r $source_path -s | tail -3 | head -3 > all_coverage.txt 5 | tr '\n' ' ' < all_coverage.txt | sed 's/ $/\n/' > temp.txt 6 | #cat temp.txt >> all_records.txt 7 | 8 | while IFS= read -r line; do 9 | # Append the current time to each line 10 | echo "$line $(date)" >> all_records.txt 11 | done < temp.txt -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/dec/dec-m/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | unsigned int a, b; 8 | read(0, &a, sizeof(a)); 9 | 10 | __asm("decl %0\n" 11 | : "+m"(a) 12 | ::); 13 | if (a == 0xdeadbeef) 14 | good(); 15 | else 16 | bad(); 17 | } 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/inc/inc-m/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | unsigned int a, b; 8 | read(0, &a, sizeof(a)); 9 | 10 | __asm("incl %0\n" 11 | : "+m"(a) 12 | ::); 13 | if (a == 0xdeadbeef) 14 | good(); 15 | else 16 | bad(); 17 | } 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsd/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main(void) { 5 | int n, v; 6 | read(0, &n, sizeof(n)); 7 | __asm__( 8 | "movsd" 9 | : 10 | : "S"(&n), "D"(&v)); 11 | 12 | if (v == 0xdeadbeef) 13 | good(); 14 | else 15 | bad(); 16 | } 17 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/.dockerignore: -------------------------------------------------------------------------------- 1 | # Ignore the third-party software that's shipped with Qsym; we don't use it anyway. 2 | qsym_backend/qsym/third_party 3 | 4 | # Similarly, we don't run its tests. 5 | qsym_backend/qsym/tests 6 | 7 | # Some build utilities that we can ignore 8 | compile_commands.json 9 | 10 | # The Dockerfile itself doesn't need to be copied 11 | Dockerfile 12 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bswap/bswap/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | unsigned int a, b; 6 | read(0, &a, sizeof(a)); 7 | 8 | __asm("bswap %1\n" 9 | "mov %1, %0\n" 10 | : "=m"(b) 11 | : "r"(a)); 12 | 13 | if (b == 0xdeadbeef) 14 | good(); 15 | else 16 | bad(); 17 | } 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/loop/loop3/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "common.h" 3 | 4 | int main() { 5 | int v = 0; 6 | unsigned int n = 0; 7 | read(0, &n, sizeof(n)); 8 | 9 | for (int i = 0; i < 0x1000; i++) { 10 | n = n + i; 11 | } 12 | 13 | if (n == 0xdf2db6ef) 14 | good(); 15 | else 16 | bad(); 17 | } 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/bindings/README: -------------------------------------------------------------------------------- 1 | 2 | 3 | Runtime bindings 4 | 5 | 6 | This directory contains bindings to the user-facing functionality of the runtime 7 | (see include/RuntimeCommon.h). The bindings give target programs written in 8 | different languages access to runtime features like in-memory input or custom 9 | test-case handlers. 10 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsf/bsf-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main() { 6 | int a = 0; 7 | int b = 0; 8 | read(0, &a, sizeof(a)); 9 | 10 | __asm__("bsf %1, %0" 11 | : "=r"(b) 12 | : "m"(a) ); 13 | 14 | if (b == 16) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bsr/bsr-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main() { 6 | int a = 0; 7 | int b = 0; 8 | read(0, &a, sizeof(a)); 9 | 10 | __asm__("bsr %1, %0" 11 | : "=r"(b) 12 | : "m"(a) ); 13 | 14 | if (b == 16) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsb/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main(void) { 5 | int n, v; 6 | n = v = 0; 7 | read(0, &n, sizeof(n)); 8 | __asm__( 9 | "movsb" 10 | : 11 | : "S"(&n), "D"(&v)); 12 | 13 | if (v == 0xde) 14 | good(); 15 | else 16 | bad(); 17 | } 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/movsw/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main(void) { 5 | int n, v; 6 | n = v = 0; 7 | read(0, &n, sizeof(n)); 8 | __asm__( 9 | "movsw" 10 | : 11 | : "S"(&n), "D"(&v)); 12 | 13 | if (v == 0xdead) 14 | good(); 15 | else 16 | bad(); 17 | } 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pmovmskb/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | int main() { 8 | __m128i a = _mm_setzero_si128(); 9 | read(0, &a, sizeof(a)); 10 | int b = _mm_movemask_epi8(a); 11 | if (b == 0xabcd) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/rol/rol/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | 11 | __asm__("rol $0x8, %0\n" 12 | : "+r"(a) 13 | ::); 14 | 15 | if (a == 0xdeadbeef) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/ror/ror/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | 11 | __asm__("ror $0x8, %0\n" 12 | : "+r"(a) 13 | ::); 14 | 15 | if (a == 0xdeadbeef) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xadd/xadd-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int x, y; 6 | read(0, &x, sizeof(x)); 7 | read(0, &y, sizeof(y)); 8 | 9 | __asm__("xadd %1, %0\n" 10 | : "+m"(y) 11 | : "r"(x) 12 | :); 13 | 14 | if (y == 0xdeadbeef) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xadd/xadd-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int x, y; 6 | read(0, &x, sizeof(x)); 7 | read(0, &y, sizeof(y)); 8 | 9 | __asm__("xadd %1, %0\n" 10 | : "+r"(y) 11 | : "r"(x) 12 | :); 13 | 14 | if (y == 0xdeadbeef) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/qsym/pintool/compiler.h: -------------------------------------------------------------------------------- 1 | #ifndef QSYM_COMPILER_H_ 2 | #define QSYM_COMPILER_H_ 3 | 4 | #define xglue(x, y) x ## y 5 | #define glue(x, y) xglue(x, y) 6 | 7 | #define likely(x) __builtin_expect((x), 1) 8 | #define unlikely(x) __builtin_expect((x), 0) 9 | 10 | inline void CRASH() { 11 | ((void(*)())0)(); 12 | } 13 | 14 | #endif // QSYM_COMPILER_H_ 15 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/dec/dec-r/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | unsigned int a, b; 8 | read(0, &a, sizeof(a)); 9 | 10 | __asm("dec %1\n" 11 | "mov %1, %0\n" 12 | : "=m"(b) 13 | : "r"(a)); 14 | if (b == 0xdeadbeef) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/inc/inc-r/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | 5 | int main(void) 6 | { 7 | unsigned int a, b; 8 | read(0, &a, sizeof(a)); 9 | 10 | __asm("inc %1\n" 11 | "mov %1, %0\n" 12 | : "=m"(b) 13 | : "r"(a)); 14 | if (b == 0xdeadbeef) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-ri/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | 11 | __asm__("shr $0x8, %0\n" 12 | : "+r"(a) 13 | ::); 14 | 15 | if (a == (0xdeadbeef >> 8)) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/build-cottontail-compiler-docker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #export PATH=/usr/lib/llvm-11/bin:$PATH 4 | export CC=clang 5 | export CXX=clang++ 6 | export LLVM_DIR=$(llvm-config --cmakedir) 7 | 8 | # Build the Cottontail compiler (qsym backend), used by the Docker image 9 | mkdir -p build && cd build 10 | 11 | cmake -DCottontail_RT_BACKEND=qsym -DZ3_TRUST_SYSTEM_VERSION=on .. 12 | 13 | make -j12 14 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-mi/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | 11 | __asm__("shrl $0x8, %0\n" 12 | : "+m"(a) 13 | ::); 14 | 15 | if (a == (0xdeadbeef >> 8)) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/cgc/CROMU_00019/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "common.h" 3 | #include "prng.h" 4 | 5 | int main() { 6 | uint64_t seed; 7 | read(0, &seed, sizeof(seed)); 8 | sprng(seed); 9 | uint32_t rng = prng(); 10 | uint32_t guess; 11 | read(0, &guess, sizeof(guess)); 12 | if (guess == rng) 13 | good(); 14 | else 15 | bad(); 16 | } 17 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsb/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main() { 6 | int64_t a, b, c = 0; 7 | read(0, &a, sizeof(a)); 8 | read(0, &b, sizeof(b)); 9 | 10 | __asm__( 11 | "movsb" 12 | : 13 | : "S"(&a), "D"(&c)); 14 | 15 | if (b == c) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsd/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main() { 6 | int64_t a, b, c = 0; 7 | read(0, &a, sizeof(a)); 8 | read(0, &b, sizeof(b)); 9 | 10 | __asm__( 11 | "movsd" 12 | : 13 | : "S"(&a), "D"(&c)); 14 | 15 | if (b == c) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsw/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main() { 6 | int64_t a, b, c = 0; 7 | read(0, &a, sizeof(a)); 8 | read(0, &b, sizeof(b)); 9 | 10 | __asm__( 11 | "movsw" 12 | : 13 | : "S"(&a), "D"(&c)); 14 | 15 | if (b == c) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/dec_jo/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("dec %0\n" 8 | "jo %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/inc_jo/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("inc %0\n" 8 | "jo %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/rol_jo/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("rol $1, %0\n" 8 | "jo %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/ror_jo/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("ror $1, %0\n" 8 | "jo %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/shl_jo/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("shl $1, %0\n" 8 | "jo %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/shr_jo/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("shr $1, %0\n" 8 | "jo %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btr/btr-ri/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | uint64_t a; 9 | char b = 0; 10 | read(0, &a, sizeof(a)); 11 | 12 | __asm__( 13 | "btr $1, %0\n" 14 | : "+r"(a) 15 | :); 16 | 17 | if (a == 0xdeadbeed) 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btc/btc-mi/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | uint64_t a[2]; 9 | char b = 0; 10 | read(0, &a, sizeof(a)); 11 | 12 | __asm__( 13 | "btc $65, %0\n" 14 | : "+m"(a) 15 | :); 16 | 17 | if (a[0] == 0xdeadbeef) 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btc/btc-ri/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | uintptr_t a[2]; 9 | char b = 0; 10 | read(0, &a, sizeof(a)); 11 | 12 | __asm__( 13 | "btc $65, %0\n" 14 | : "+r"(a) 15 | :); 16 | 17 | if (a[0] == 0xdeadbeef) 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/btr/btr-mi/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | uint64_t a[2]; 9 | char b = 0; 10 | read(0, &a, sizeof(a)); 11 | 12 | __asm__( 13 | "btr $4, %0\n" 14 | : "+m"(a) 15 | :); 16 | 17 | if (a[0] == 0xdeadbeef) 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bts/bts-mi/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | uint64_t a[2]; 9 | char b = 0; 10 | read(0, &a, sizeof(a)); 11 | 12 | __asm__( 13 | "bts $65, %0\n" 14 | : "+m"(a) 15 | :); 16 | 17 | if (a[0] == 0xdeadbeef) 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bts/bts-ri/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | uintptr_t a[2]; 9 | char b = 0; 10 | read(0, &a, sizeof(a)); 11 | 12 | __asm__( 13 | "bts $65, %0\n" 14 | : "+r"(a) 15 | :); 16 | 17 | if (a[0] == 0xdeadbeef) 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jb/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("add $0xdeadbeef, %0\n" 8 | "jb %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jl/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("add $0xdeadbeef, %0\n" 8 | "jl %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/add_jo/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("add $0xdeadbeef, %0\n" 8 | "jo %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/dec_jb/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto( 8 | "dec %0\n" 9 | "jo %l1\n" 10 | "jmp %l2\n" 11 | : 12 | : "r"(n) 13 | : 14 | : good, bad); 15 | good: 16 | good(); 17 | return 0; 18 | bad: 19 | bad(); 20 | return 0; 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/eflags/sub_jo/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int n; 6 | read(0, &n, sizeof(n)); 7 | __asm__ goto("sub $0xdeadbeef, %0\n" 8 | "jo %l1\n" 9 | "jmp %l2\n" 10 | : 11 | : "r"(n) 12 | : 13 | : good, bad); 14 | good: 15 | good(); 16 | return 0; 17 | bad: 18 | bad(); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psra/psrad/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | int main() { 8 | __m128i a = _mm_setzero_si128(); 9 | read(0, &a, sizeof(a)); 10 | __m128i b = _mm_srai_epi32(a, 1); 11 | if (*(uint64_t*)&b == 0xc0c1c2c3c4c5c6c7) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | 17 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/psra/psraw/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | int main() { 8 | __m128i a = _mm_setzero_si128(); 9 | read(0, &a, sizeof(a)); 10 | __m128i b = _mm_srai_epi16(a, 1); 11 | if (*(uint64_t*)&b == 0xc0c1c2c3c4c5c6c7) 12 | good(); 13 | else 14 | bad(); 15 | } 16 | 17 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/set/set.h: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | #define GET_FLAG(set) { \ 5 | int n, v = 0; \ 6 | read(0, &n, sizeof(n)); \ 7 | do { \ 8 | __asm("cmp $0xdeadbeef, %1;" \ 9 | #set" %0;" \ 10 | : "=m"(v) \ 11 | : "r"(n)); \ 12 | } \ 13 | while(0); \ 14 | if (v) \ 15 | good(); \ 16 | else \ 17 | bad(); \ 18 | } 19 | 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-m-cl/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | 11 | __asm__("mov $0x8, %%ecx\n" 12 | "shrl %%cl, %0\n" 13 | : "+m"(a) 14 | ::); 15 | 16 | if (a == (0xdeadbeef >> 8)) 17 | good(); 18 | else 19 | bad(); 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-mi/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | read(0, &b, sizeof(b)); 11 | 12 | __asm__("shldl $0x8, %1, %0\n" 13 | : "=m"(a) 14 | : "r"(b)); 15 | 16 | if (a == 0xdeadbeef) 17 | good(); 18 | else 19 | bad(); 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-mi/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | read(0, &b, sizeof(b)); 11 | 12 | __asm__("shldl $0x8, %1, %0\n" 13 | : "=m"(a) 14 | : "r"(b)); 15 | 16 | if (a == 0xdeadbeef) 17 | good(); 18 | else 19 | bad(); 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shrd/shrd-ri/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | read(0, &b, sizeof(b)); 11 | 12 | __asm__("shrdl $0x8, %1, %0\n" 13 | : "+r"(a) 14 | : "r"(b)); 15 | 16 | if (a == 0xdeadbeef) 17 | good(); 18 | else 19 | bad(); 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-mr/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int a, v; 6 | read(0, &a, sizeof(a)); 7 | v = 0; 8 | 9 | __asm__("mov $0, %%eax\n" 10 | "xchg %1, %%eax\n" 11 | "mov %%eax, %0\n" 12 | : "=r"(v) 13 | : "m"(a) 14 | : "eax"); 15 | 16 | if (v == 0xdeadbeef) 17 | good(); 18 | else 19 | bad(); 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-rm/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int a, v; 6 | read(0, &a, sizeof(a)); 7 | v = 0; 8 | 9 | __asm__("mov $0, %%eax\n" 10 | "xchg %%eax, %1\n" 11 | "mov %%eax, %0\n" 12 | : "=r"(v) 13 | : "m"(a) 14 | : "eax"); 15 | 16 | if (v == 0xdeadbeef) 17 | good(); 18 | else 19 | bad(); 20 | } 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/qsym/pintool/trace.h: -------------------------------------------------------------------------------- 1 | #ifndef QSYM_TRACE_H_ 2 | #define QSYM_TRACE_H_ 3 | 4 | #include "expr.h" 5 | 6 | namespace qsym { 7 | 8 | void trace_getExprFromMem(ExprRef e, ADDRINT addr, INT32 size); 9 | void trace_getExprFromReg(ExprRef e, const CONTEXT* ctx, REG r); 10 | void trace_addJcc(ExprRef e, const CONTEXT* ctx, bool taken); 11 | void trace_addValue(ExprRef e, llvm::APInt value); 12 | } 13 | #endif 14 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bt/bt-ri/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a = 0; 9 | char b = 0; 10 | read(0, &a, sizeof(a)); 11 | 12 | __asm__( 13 | "bt $0x8, %1\n" 14 | "setb %0\n" 15 | : "=r"(b) 16 | : "r"(a) 17 | :); 18 | 19 | if (b) 20 | good(); 21 | else 22 | bad(); 23 | } 24 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/bt/bt-mi/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | uint64_t a[2]; 9 | char b = 0; 10 | read(0, &a, sizeof(a)); 11 | 12 | __asm__( 13 | "bt $65, %1\n" 14 | "setb %0\n" 15 | : "=r"(b) 16 | : "m"(a) 17 | :); 18 | 19 | if (b) 20 | good(); 21 | else 22 | bad(); 23 | } 24 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shr/shr-r-cl/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | 11 | __asm__("mov $0x8, %%ecx\n" 12 | "shr %%cl, %0\n" 13 | : "+r"(a) 14 | : 15 | : "ecx"); 16 | 17 | if (a == (0xdeadbeef >> 8)) 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xmm/memcpy/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "common.h" 6 | 7 | int main( int argc, char* argv[] ) 8 | { 9 | char in[16], out[16]; 10 | 11 | read(0, in, sizeof(in)); 12 | memcpy(out, in, sizeof(in)); 13 | 14 | if (*(int32_t*)out == 0xdeadbeef) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/qsym/pintool/third_party/libdft/syscall_hook.h: -------------------------------------------------------------------------------- 1 | #ifndef QSYM_SYSCALL_HOOK_ 2 | #define QSYM_SYSCALL_HOOK_ 3 | 4 | #include 5 | #include "syscall_desc.h" 6 | #include "linux_syscall.h" 7 | 8 | namespace qsym { 9 | 10 | void hookSyscalls(bool hook_stdin, bool hook_fs, bool hook_net, 11 | const std::string& input); 12 | 13 | } // namespace qsym; 14 | 15 | #endif // QSYM_SYSCALL_HOOK_ 16 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-mi/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int a, b, v; 6 | read(0, &a, sizeof(a)); 7 | read(0, &b, sizeof(b)); 8 | 9 | __asm__("add $0x01234567, %1\n" 10 | "mov %2, %0\n" 11 | "adcl $0xabcdef, %0\n" 12 | : "+m"(v) 13 | : "r"(a), "r"(b)); 14 | 15 | if (v == 0xdeadbeef) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/adc/adc-ri/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int a, b, v; 6 | read(0, &a, sizeof(a)); 7 | read(0, &b, sizeof(b)); 8 | 9 | __asm__("add $0x01234567, %1\n" 10 | "adc $0xabcdef, %2\n" 11 | "mov %2, %0\n" 12 | : "=m"(v) 13 | : "r"(a), "r"(b)); 14 | 15 | if (v == 0xdeadbeef) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-mi/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int a, b, v; 6 | read(0, &a, sizeof(a)); 7 | read(0, &b, sizeof(b)); 8 | 9 | __asm__("sub $0x01234567, %1\n" 10 | "mov %2, %0\n" 11 | "sbbl $0xabcdef, %0\n" 12 | : "+m"(v) 13 | : "r"(a), "r"(b)); 14 | 15 | if (v == 0xdeadbeef) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/sbb/sbb-ri/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int a, b, v; 6 | read(0, &a, sizeof(a)); 7 | read(0, &b, sizeof(b)); 8 | 9 | __asm__("sub $0x01234567, %1\n" 10 | "sbb $0xabcdef, %2\n" 11 | "mov %2, %0\n" 12 | : "=m"(v) 13 | : "r"(a), "r"(b)); 14 | 15 | if (v == 0xdeadbeef) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/glibc/malloc2/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main(void) 6 | { 7 | int size1, size2; 8 | read(0, &size1, sizeof(size1)); 9 | int* m1 = (int*)malloc(size1); 10 | read(0, &size2, sizeof(size2)); 11 | int* m2 = (int*)malloc(size2); 12 | read(0, m2, size2); 13 | if (m2[0] == 0xdeadbeef) 14 | good(); 15 | else 16 | bad(); 17 | } 18 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-disp/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main(void) { 5 | int n, v; 6 | read(0, &n, sizeof(n)); 7 | __asm__("mov %1, %%eax\n" 8 | "lea 0x10(%%eax), %%ebx\n" 9 | "mov %%ebx, %0\n" 10 | : "=r"(v) 11 | : "r"(n) 12 | : "eax", "ebx"); 13 | 14 | if (v == 0xdeadbeef) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/lea/lea-index/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main(void) { 5 | int n, v; 6 | read(0, &n, sizeof(n)); 7 | __asm__("mov %1, %%eax\n" 8 | "lea (, %%eax, 4), %%ebx\n" 9 | "mov %%ebx, %0\n" 10 | : "=r"(v) 11 | : "r"(n) 12 | : "eax", "ebx"); 13 | 14 | if (v == 0xdeadbeec) 15 | good(); 16 | else 17 | bad(); 18 | } 19 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrb/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | int main() { 9 | __m128i a = _mm_setzero_si128(); 10 | int b = 0; 11 | 12 | read(0, &a, sizeof(a)); 13 | read(0, &b, sizeof(b)); 14 | 15 | if (b == _mm_extract_epi8(a, 1)) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrd/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | int main() { 9 | __m128i a = _mm_setzero_si128(); 10 | int b = 0; 11 | 12 | read(0, &a, sizeof(a)); 13 | read(0, &b, sizeof(b)); 14 | 15 | if (b == _mm_extract_epi32(a, 1)) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/pextr/pextrw/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | int main() { 9 | __m128i a = _mm_setzero_si128(); 10 | int b = 0; 11 | 12 | read(0, &a, sizeof(a)); 13 | read(0, &b, sizeof(b)); 14 | 15 | if (b == _mm_extract_epi8(a, 1)) 16 | good(); 17 | else 18 | bad(); 19 | } 20 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsxd/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | #ifndef __x86_64__ 6 | #error "Only for x86_64" 7 | #endif 8 | 9 | int main() { 10 | int a = 0; 11 | uint64_t b = 0; 12 | read(0, &a, sizeof(a)); 13 | 14 | __asm__("movsxd %1, %0\n" 15 | : "=r"(b) 16 | : "m"(a)); 17 | 18 | if (b == 0xffffffffdeadbeef) 19 | good(); 20 | else 21 | bad(); 22 | } 23 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/regress/null-deref-DependencyForest-addNode/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int *asm_fn(); 6 | 7 | int main(int argc, char **argv) { 8 | const int v1 = 0x78; 9 | const int v2 = 0x12345678; 10 | int i; 11 | int num; 12 | 13 | read(0, &num, sizeof(num)); 14 | 15 | for (i = 0; i < 300; i++) { 16 | if (v1 - num != v2) 17 | asm_fn(); 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/xchg/xchg-rr/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | 4 | int main() { 5 | int a, v; 6 | read(0, &a, sizeof(a)); 7 | v = 0; 8 | 9 | __asm__("mov $0, %%eax\n" 10 | "mov %0, %%ebx\n" 11 | "xchg %%eax, %%ebx\n" 12 | "mov %%eax, %0\n" 13 | : "=r"(v) 14 | : "r"(a) 15 | : "eax", "ebx"); 16 | 17 | if (v == 0xdeadbeef) 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movs/movsq/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | #ifndef __x86_64__ 6 | #error "Only for x86_64" 7 | #endif 8 | 9 | int main() { 10 | int64_t a, b, c = 0; 11 | read(0, &a, sizeof(a)); 12 | read(0, &b, sizeof(b)); 13 | 14 | __asm__( 15 | "movsq" 16 | : 17 | : "S"(&a), "D"(&c)); 18 | 19 | if (b == c) 20 | good(); 21 | else 22 | bad(); 23 | } 24 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/movsd/rep-movsd/main.c: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include 3 | #include 4 | 5 | int main(void) { 6 | char src[0x100]; 7 | char dst[0x100]; 8 | 9 | read(0, src, sizeof(src)); 10 | memset(dst, 0, sizeof(dst)); 11 | 12 | __asm__( 13 | "rep movsd" 14 | : 15 | : "S"(src), "D"(dst), "c"(0x100 / 4)); 16 | 17 | if (dst[0x80] == '?') 18 | good(); 19 | else 20 | bad(); 21 | } 22 | -------------------------------------------------------------------------------- /cottontail-compiler/runtime/src/backends/qsym/qsym/tests/assembly/shld/shld-m-cl/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "common.h" 5 | 6 | int main(void) 7 | { 8 | int a, b; 9 | read(0, &a, sizeof(a)); 10 | read(0, &b, sizeof(b)); 11 | 12 | __asm__("mov $0x8, %%ecx\n" 13 | "shldl %%cl, %1, %0\n" 14 | : "=m"(a) 15 | : "r"(b) 16 | : "ecx"); 17 | 18 | if (a == 0xdeadbeef) 19 | good(); 20 | else 21 | bad(); 22 | } 23 | --------------------------------------------------------------------------------