Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed 64-bit integer literal support

  • Loading branch information...
commit 13d6c48c7e2373093d3aa366c6195fb7eac4136a 1 parent e8d4f58
Kyle Miller authored
Showing with 8 additions and 1 deletion.
  1. +2 −1  src/Assembly.hs
  2. +6 −0 tests/codegen/largeint.dcf
3  src/Assembly.hs
View
@@ -325,7 +325,8 @@ instance Show (Asm e x) where
(show sname) (show reg) (showPos pos)
show (MovIRMtoR pos a b) = showBinOp "movq" pos a b
show (MovIRtoM pos a b) = showBinOp "movq" pos a b
- show (Mov64toR pos a b) = showBinOp "movq" pos a b
+ show (Mov64toR pos a b) = printf "%s $%s, %s # %s"
+ "movq" (show a) (show b) (showPos pos)
show (CMovRMtoR pos flag a b) = showBinOp opcode pos a b
where opcode = "cmov" ++ show flag ++ "q"
6 tests/codegen/largeint.dcf
View
@@ -0,0 +1,6 @@
+//>22222222222222
+class Program {
+ void main() {
+ callout("printf", "%lld\n", 22222222222222);
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.