Files
llvm-project/llvm/test/CodeGen/X86/mcu-abi.ll
Michael Kuperstein e1194bdb4f [X86] Make elfiamcu an OS, not an environment.
GNU tools require elfiamcu to take up the entire OS field, so, e.g.
i?86-*-linux-elfiamcu is not considered a legal triple.
Make us compatible.

Differential Revision: http://reviews.llvm.org/D14081

llvm-svn: 251390
2015-10-27 07:23:59 +00:00

12 lines
303 B
LLVM

; RUN: llc < %s -mtriple=i686-pc-elfiamcu | FileCheck %s
; CHECK-LABEL: test_lib_args:
; CHECK: movl %edx, %eax
; CHECK: calll __fixsfsi
define i32 @test_lib_args(float inreg %a, float inreg %b) #0 {
%ret = fptosi float %b to i32
ret i32 %ret
}
attributes #0 = { nounwind "use-soft-float"="true"}