Skip to content

clang doesn't support fp stack in inline asm yet #4342

@nunoplopes

Description

@nunoplopes
Bugzilla Link 3970
Resolution FIXED
Resolved on Apr 19, 2009 12:32
Version unspecified
OS Linux
CC @efriedma-quic

Extended Description

$ clang-c -c a.c

with a.c:

double floor(double x)
{
register long double val;

__asm __volatile (
		"frndint\n"
		:
		"=t" (val)
		:
		"0" (x)
		);

}

gives:
"Unsupported asm: input constraint with a matching output constraint of incompatible type!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions