aboutsummaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2014-03-07 03:00:00 +0100
committerDrahflow <drahflow@gmx.de>2014-03-07 03:00:00 +0100
commit08fb5ab0d295cab79d5d65e9dba7976b797e0348 (patch)
tree88e9364644c1e6e3573fcbc13f579638e9047b44 /compiler
parentee08bcf48cb6221295ae4b8663317a5320a6450b (diff)
Testcases (and some code) for #.=
Diffstat (limited to 'compiler')
-rw-r--r--compiler/elymasGlobal.ey27
1 files changed, 17 insertions, 10 deletions
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