Skip to content

<inline asm>:5:10: error: ambiguous operand size for instruction 'pop' #114531

@lhmouse

Description

@lhmouse

(https://gcc.godbolt.org/z/cv8a5hfa6)

  xor esi, esi
  push gs:[rsi]    ; push QWORD PTR gs:[0]
  pop gs:[rsi]     ; pop QWORD PTR gs:[0]

On x86-64 both the push and pop instructions take only 64-bit operands, so there's no ambiguity.

It also seems inconsistent that push is unaffected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions