From 08fb5ab0d295cab79d5d65e9dba7976b797e0348 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Fri, 7 Mar 2014 03:00:00 +0100 Subject: Testcases (and some code) for #.= --- compiler/elymasGlobal.ey | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'compiler') diff --git a/compiler/elymasGlobal.ey b/compiler/elymasGlobal.ey index e8c419a..360758d 100644 --- a/compiler/elymasGlobal.ey +++ b/compiler/elymasGlobal.ey @@ -41,11 +41,14 @@ /rax /rax :testqRegReg /found :jnzLbl8 - "unresolved name in |: " ::outputError - /rbx /rdi :movqRegReg - ::internalDumpErrorString /rax :movqImmReg - /rax :callqReg - :ud2 + /rcx :popqReg + /rbx :pushqReg + /r14 :pushqReg + /rax :movqImmOOBReg "#.|" ::string + /rax :pushqReg + /rax :movqImmOOBReg "ey|" "ey." ::linkAbs64 + /rcx :pushqReg + /rax :jmpqReg @found /rcx :popqReg @@ -325,11 +328,15 @@ /rax /rax :testqRegReg /found :jnzLbl8 - "unresolved name in =: " ::outputError - /rbx /rdi :movqRegReg - ::internalDumpErrorString /rax :movqImmReg - /rax :callqReg - :ud2 + /rbx :pushqReg + /r14 :pushqReg + /rax :movqImmOOBReg "#.=" ::string + /rax :pushqReg + /rax :movqImmOOBReg "ey=" "ey." ::linkAbs64 + + /r15 :pushqMem + 8 /r15 :addqImm8Reg + /rax :jmpqReg @found /rcx :popqMem -- cgit v1.2.3