[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/6994] New: Support L/LL suffix in integer constants
From: |
hjl dot tools at gmail dot com |
Subject: |
[Bug gas/6994] New: Support L/LL suffix in integer constants |
Date: |
29 Oct 2008 06:59:54 -0000 |
We may use the same macro for integer constants used in both
C and assembly codes. For 64bit integers in C, we use LL suffix.
But LL/L suffixes are rejected by assembler as in
address@hidden 910]$ cat bad.s
.8byte 0x00000008007C0000ULL
.8byte 0x00000008007C0000UL
.8byte 0x00000008007C0000LL
.8byte 0x00000008007C0000L
.8byte 0x00000008007C0000ULl
.8byte 0x00000008007C0000Ul
.8byte 0x00000008007C0000Ll
.8byte 0x00000008007C0000l
address@hidden 910]$ gcc -c bad.s
bad.s: Assembler messages:
bad.s:1: Error: junk at end of line, first unrecognized character is `U'
bad.s:2: Error: junk at end of line, first unrecognized character is `U'
bad.s:3: Error: junk at end of line, first unrecognized character is `L'
bad.s:4: Error: junk at end of line, first unrecognized character is `L'
bad.s:5: Error: junk at end of line, first unrecognized character is `U'
bad.s:6: Error: junk at end of line, first unrecognized character is `U'
bad.s:7: Error: junk at end of line, first unrecognized character is `L'
bad.s:8: Error: junk at end of line, first unrecognized character is `l'
address@hidden 910]$ cat new.s
mov $0x00000008007C0000ULL,%rax
mov $0x00000008007C0000UL,%rax
mov $0x00000008007C0000LL,%rax
mov $0x00000008007C0000L,%rax
address@hidden 910]$ gcc -c new.s
new.s: Assembler messages:
new.s:1: Error: junk `ULL' after expression
new.s:2: Error: junk `UL' after expression
new.s:3: Error: junk `LL' after expression
new.s:4: Error: junk `L' after expression
address@hidden 910]$
I think we should allow C suffixes valid for for type valueT.
--
Summary: Support L/LL suffix in integer constants
Product: binutils
Version: 2.20 (HEAD)
Status: NEW
Severity: enhancement
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl dot tools at gmail dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=6994
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/6994] New: Support L/LL suffix in integer constants,
hjl dot tools at gmail dot com <=