View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0038164 | FPC | Compiler | public | 2020-12-04 04:47 | 2020-12-17 23:09 |
Reporter | Benjamin Rosseaux | Assigned To | Florian | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.3.1 | ||||
Fixed in Version | 3.3.1 | ||||
Summary | 0038164: Int64 mod high Int64 Value generates wrong "exceeds 32-bit bound" ASM error at x86-64 target | ||||
Description | Int64 mod high Int64 Value generates wrong "exceeds 32-bit bound" ASM error at any x86-64 target Example source: program int64modint64bug; {$mode delphi} const a = int64($100000000); var b: int64 = 123; c: int64; begin c := b mod a; if c <> 0 then begin end; end. Example output: Free Pascal Compiler version 3.3.1 [2020/11/26] for x86_64 Copyright (c) 1993-2020 by Florian Klaempfl and others Target OS: Win64 for x64 Compiling int64modint64bug.pas int64modint64bug.pas(11,10) Error: Asm: signed dword value exceeds bounds -4294967296 int64modint64bug.pas(15,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted | ||||
Steps To Reproduce | Compile it for any x86-64 target with the internal assembler (without -Aas) | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 47805 | ||||
FPCOldBugId | |||||
FPCTarget | - | ||||
Attached Files |
|
|
int64modint64bug.pas (187 bytes)
program int64modint64bug; {$mode delphi} const a = int64($100000000); var b: int64 = 123; c: int64; begin c := b mod a; if c <> 0 then begin end; end. int64modint64bug.txt (371 bytes)
Free Pascal Compiler version 3.3.1 [2020/11/26] for x86_64 Copyright (c) 1993-2020 by Florian Klaempfl and others Target OS: Win64 for x64 Compiling int64modint64bug.pas int64modint64bug.pas(11,10) Error: Asm: signed dword value exceeds bounds -4294967296 int64modint64bug.pas(15,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-12-04 04:47 | Benjamin Rosseaux | New Issue | |
2020-12-04 04:47 | Benjamin Rosseaux | File Added: int64modint64bug.pas | |
2020-12-04 04:47 | Benjamin Rosseaux | File Added: int64modint64bug.txt | |
2020-12-17 23:09 | Florian | Assigned To | => Florian |
2020-12-17 23:09 | Florian | Status | new => resolved |
2020-12-17 23:09 | Florian | Resolution | open => fixed |
2020-12-17 23:09 | Florian | Fixed in Version | => 3.3.1 |
2020-12-17 23:09 | Florian | Fixed in Revision | => 47805 |
2020-12-17 23:09 | Florian | FPCTarget | => - |