Skip to content

Assembler error - operand type mismatch for 'movd' - FBC 1.20 gas64 #467

Description

@bryanjs

FreeBASIC Compiler - Version 1.20.0 (2026-04-15), built for win64 (64bit)
Copyright (C) 2004-2025 The FreeBASIC development team.
standalone

-gen gas64
no issue when adding -g
edit: issue not present in FBC 1.10.1 with same command-line options

Wrong code is emitted with the following source code:

Dim As Single a = Any, b = Any, c = Any, d = Any

c = a + b		'' any arithmetic 

'' compilation error: operand type mismatch for 'movd'
If c > d Then
	'' anything
End If

'' no compilation error
Dim As Boolean logic = c > d

'' no compilation error
If a + b > d Then
	'' anything
End If

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions