First of all, dq
in NASM assembles an 8-byte quadword, whereas .long
in x86 GAS is a 4-byte doubleword, so that's not what you want. The correct equivalent is .quad
.
Your (1<<53) | ...
is just an arithmetic expression using C-like shift and bitwise operators, and dq (1 << 53) | ...
assembles a quadword having as its value the result of this expression. GAS accepts this syntax as well, so you can simply write
.quad (1<<53) | (1<<47) | (1<<46) | (1<<45) | (1<<44) | (1<<43)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…