Permalink
Browse files

fixed 64-bit integer literal support

  • Loading branch information...
1 parent e8d4f58 commit 13d6c48c7e2373093d3aa366c6195fb7eac4136a Kyle Miller committed Apr 25, 2012
Showing with 8 additions and 1 deletion.
  1. +2 −1 src/Assembly.hs
  2. +6 −0 tests/codegen/largeint.dcf
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"
@@ -0,0 +1,6 @@
+//>22222222222222
+class Program {
+ void main() {
+ callout("printf", "%lld\n", 22222222222222);
+ }
+}

0 comments on commit 13d6c48

Please sign in to comment.