From 4431776fc003111e6bc4139d5d237d350bea372f Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 15 Oct 2020 22:12:02 +0300 Subject: [PATCH] travis: add imm Signed-off-by: Cyrill Gorcunov --- travis/test/imm.asm | 26 ++++++++++++++++++++++++++ travis/test/imm.json | 12 ++++++++++++ travis/test/imm.o.t | Bin 0 -> 800 bytes 3 files changed, 38 insertions(+) create mode 100644 travis/test/imm.asm create mode 100644 travis/test/imm.json create mode 100644 travis/test/imm.o.t diff --git a/travis/test/imm.asm b/travis/test/imm.asm new file mode 100644 index 000000000..d68a43dd4 --- /dev/null +++ b/travis/test/imm.asm @@ -0,0 +1,26 @@ + bits 64 + + mov eax,1 + mov eax,-1 + mov eax,0x11111111 + mov ecx,2 + add ecx,-6 + add ecx,strict dword -6 + add ecx,4 + add ecx,strict dword 4 + add ecx,10000 + xor ecx,0xffffffff + xor ecx,dword 0xffffffff + xor ecx,strict dword 0xffffffff + xor ecx,-1 + xor ecx,dword -1 + xor ecx,strict dword -1 + add edx,byte ($-$$) + + mov rax, 0xfafafafaafafafaf + +%ifnidn __OUTPUT_FORMAT__,bin + extern foo, bar + add eax,byte foo + add edx,byte (bar-$$) +%endif diff --git a/travis/test/imm.json b/travis/test/imm.json new file mode 100644 index 000000000..f2d9a119a --- /dev/null +++ b/travis/test/imm.json @@ -0,0 +1,12 @@ +[ + { + "description": "Test immediates", + "id": "imm", + "format": "elf64", + "source": "imm.asm", + "option": "-Ox", + "target": [ + { "output": "imm.o" } + ] + } +] diff --git a/travis/test/imm.o.t b/travis/test/imm.o.t new file mode 100644 index 0000000000000000000000000000000000000000..4d8c5d568e41c17e822333f30d679f3c7aa022a9 GIT binary patch literal 800 zcmbVKJx{|x40YP5FqL)!!~mVTpoCw5Isjr|sDuRbRSIe)qDr|FDiezGgIL4X>o4G^ zkTpxN8(%-Hu<(?~e$RgAyIekQAMRS72M!)w!;ZnniC%*q6MC zXQB55KS16V8qo{h+NG$;v-Ppwbc!*H3-Gu?!5_MdN*I+61SDAU>! zKkUEa0?j6`oS&1JSBSii_##_o%hZ-AW!6tEt)AN65cQ(MCoQOZFJIl<=bwlYku4!x zp~WFE(ZWEWr`jY&O)z_p>&QHbURB-XEKQNN=|fR9)!OTm?N^SG%DbkHvp;mItr3JK nQExLHnn;^)7RQ0oF}%#@Fi{D>Be!)i?*2DVtRG>dFXs3!nW|Re literal 0 HcmV?d00001