brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 61e2bba Raw
73 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; FIXME: Expansion for f803; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck -check-prefixes=X64 %s4; XUN: llc -mtriple=i386-pc-win32 < %s | FileCheck -check-prefix=X64 %s5 6define { x86_fp80, i32 } @test_frexp_f80_i32(x86_fp80 %a) nounwind {7; X64-LABEL: test_frexp_f80_i32:8; X64:       # %bb.0:9; X64-NEXT:    subq $24, %rsp10; X64-NEXT:    fldt {{[0-9]+}}(%rsp)11; X64-NEXT:    fstpt (%rsp)12; X64-NEXT:    leaq {{[0-9]+}}(%rsp), %rdi13; X64-NEXT:    callq frexpl@PLT14; X64-NEXT:    movl {{[0-9]+}}(%rsp), %eax15; X64-NEXT:    addq $24, %rsp16; X64-NEXT:    retq17  %result = call { x86_fp80, i32 } @llvm.frexp.f80.i32(x86_fp80 %a)18  ret { x86_fp80, i32 } %result19}20 21define x86_fp80 @test_frexp_f80_i32_only_use_fract(x86_fp80 %a) nounwind {22; X64-LABEL: test_frexp_f80_i32_only_use_fract:23; X64:       # %bb.0:24; X64-NEXT:    subq $24, %rsp25; X64-NEXT:    fldt {{[0-9]+}}(%rsp)26; X64-NEXT:    fstpt (%rsp)27; X64-NEXT:    leaq {{[0-9]+}}(%rsp), %rdi28; X64-NEXT:    callq frexpl@PLT29; X64-NEXT:    addq $24, %rsp30; X64-NEXT:    retq31  %result = call { x86_fp80, i32 } @llvm.frexp.f80.i32(x86_fp80 %a)32  %result.0 = extractvalue { x86_fp80, i32 } %result, 033  ret x86_fp80 %result.034}35 36define x86_fp80 @test_frexp_f80_i32_only_use_fract_math(x86_fp80 %a) nounwind {37; X64-LABEL: test_frexp_f80_i32_only_use_fract_math:38; X64:       # %bb.0:39; X64-NEXT:    subq $24, %rsp40; X64-NEXT:    fldt {{[0-9]+}}(%rsp)41; X64-NEXT:    fstpt (%rsp)42; X64-NEXT:    leaq {{[0-9]+}}(%rsp), %rdi43; X64-NEXT:    callq frexpl@PLT44; X64-NEXT:    fadd %st, %st(0)45; X64-NEXT:    addq $24, %rsp46; X64-NEXT:    retq47  %result = call { x86_fp80, i32 } @llvm.frexp.f80.i32(x86_fp80 %a)48  %result.0 = extractvalue { x86_fp80, i32 } %result, 049  %add = fadd x86_fp80 %result.0,%result.050  ret x86_fp80 %add51}52 53define i32 @test_frexp_f80_i32_only_use_exp(x86_fp80 %a) nounwind {54; X64-LABEL: test_frexp_f80_i32_only_use_exp:55; X64:       # %bb.0:56; X64-NEXT:    subq $24, %rsp57; X64-NEXT:    fldt {{[0-9]+}}(%rsp)58; X64-NEXT:    fstpt (%rsp)59; X64-NEXT:    leaq {{[0-9]+}}(%rsp), %rdi60; X64-NEXT:    callq frexpl@PLT61; X64-NEXT:    fstp %st(0)62; X64-NEXT:    movl {{[0-9]+}}(%rsp), %eax63; X64-NEXT:    addq $24, %rsp64; X64-NEXT:    retq65  %result = call { x86_fp80, i32 } @llvm.frexp.f80.i32(x86_fp80 %a)66  %result.0 = extractvalue { x86_fp80, i32 } %result, 167  ret i32 %result.068}69 70declare { x86_fp80, i32 } @llvm.frexp.f80.i32(x86_fp80) #071 72attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }73