Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64-bit code generation bug #4181

Closed
vicuna opened this issue Dec 6, 2006 · 1 comment
Closed

64-bit code generation bug #4181

vicuna opened this issue Dec 6, 2006 · 1 comment
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 6, 2006

Original bug ID: 4181
Reporter: @mmottl
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2006-12-16T10:10:57Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.09.3
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @mmottl

Bug description

We have run into the following assembler error on a 64-bit machine running Linux:

/tmp/camlasm8e7fd3.s: Assembler messages:
/tmp/camlasm8e7fd3.s:25: Error: suffix or operands invalid for `add'

The OCaml-code:

let oid_ctr = ref 0;;
oid_ctr := !oid_ctr + max_int / 2

The assembler output of this region:

.L101:
leaq 8(%r15), %rax
movq $1024, -8(%rax)
movq $1, (%rax)
movq %rax, camlRob_test(%rip)
movq camlRob_test(%rip), %rax
addq $4611686018427387902, (%rax)
movq $1, %rax
addq $8, %rsp
ret

@vicuna
Copy link
Author

vicuna commented Dec 16, 2006

Comment author: @xavierleroy

Fixed in 3.09 bugfix branch and in development trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants