summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/mcu-abi.ll
blob: 6dc2c993032012306121cac6f6e8b3839baead90 (plain)
1
2
3
4
5
6
7
8
9
10
11
; 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"}
OpenPOWER on IntegriCloud