-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
x86-32 "f16" ABI needs SSE, incompatible with i586 targets #131819
Copy link
Copy link
Open
Labels
A-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.F-f16_and_f128`#![feature(f16)]`, `#![feature(f128)]``#![feature(f16)]`, `#![feature(f128)]`O-x86_32Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)S-waiting-on-LLVMStatus: the compiler-dragon is eepy, can someone get it some tea?Status: the compiler-dragon is eepy, can someone get it some tea?
Metadata
Metadata
Assignees
Labels
A-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.F-f16_and_f128`#![feature(f16)]`, `#![feature(f128)]``#![feature(f16)]`, `#![feature(f128)]`O-x86_32Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)S-waiting-on-LLVMStatus: the compiler-dragon is eepy, can someone get it some tea?Status: the compiler-dragon is eepy, can someone get it some tea?
Type
Fields
Give feedbackNo fields configured for issues without a type.
@beetrees wrote
So... for the "Rust" ABI we can do our own thing bypassing this (likely similar fo
f32/f64, we should just always returnf16in viaPassMode::Indirect), but what shall we do for theextern "C"ABI? We'll need a new dedicated compiler error (likely as part of the pass that we are adding here) that rejects returningf16when the SSE registers are not available.That will mean that libcore does not compile on i586 targets....Actually libcore uses the "Rust" ABI so that one is fine. But if we haveextern "C"float functions somewhere those would not be portable any more.Cc @tgross35 @chorman0773