forked from OSchip/llvm-project
17 lines
506 B
LLVM
17 lines
506 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic | FileCheck %s
|
|
|
|
define i128 @f(x86_fp80 %a) nounwind {
|
|
; CHECK-LABEL: f:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: subq $24, %rsp
|
|
; CHECK-NEXT: fldt {{[0-9]+}}(%rsp)
|
|
; CHECK-NEXT: fstpt (%rsp)
|
|
; CHECK-NEXT: callq __fixunsxfti@PLT
|
|
; CHECK-NEXT: addq $24, %rsp
|
|
; CHECK-NEXT: retq
|
|
entry:
|
|
%tmp78 = fptoui x86_fp80 %a to i128
|
|
ret i128 %tmp78
|
|
}
|