[Bug target/113122] New: Assembler messages: Error: operand type mismatch for `movabs' / bad expression / invalid use of register with -fprofile -mcmodel=large -masm=intel
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Sat Dec 23 10:51:45 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113122
Bug ID: 113122
Summary: Assembler messages: Error: operand type mismatch for
`movabs' / bad expression / invalid use of register
with -fprofile -mcmodel=large -masm=intel
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: assemble-failure
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Compiler output:
$ echo 'void foo(void) {}' > testcase.c
$ x86_64-pc-linux-gnu-gcc -fprofile -mcmodel=large -masm=intel testcase.c
-save-temps
a-testcase.s: Assembler messages:
a-testcase.s:14: Error: operand type mismatch for `movabs'
a-testcase.s:15: Error: bad expression
a-testcase.s:15: Error: invalid use of register
$ cat a-testcase.s
...
1: movabsq $mcount, %r10
call *%r10
...
It seems the Intel dialect variant is missing for generation of this statement.
More information about the Gcc-bugs
mailing list