47 lines · plain
1; RUN: llc -mtriple=x86_64-linux-gnu < %s | FileCheck -check-prefix=LINUX %s2; RUN: not llc -mtriple=x86_64-apple-macos10.9 < %s 2>&1 | FileCheck -check-prefix=ERR %s3; RUN: not llc -mtriple=x86_64-apple-ios9.0 < %s 2>&1 | FileCheck -check-prefix=ERR %s4; RUN: not llc -mtriple=x86_64-apple-tvos9.0 < %s 2>&1 | FileCheck -check-prefix=ERR %s5; RUN: not llc -mtriple=x86_64-apple-watchos9.0 < %s 2>&1 | FileCheck -check-prefix=ERR %s6; RUN: not llc -mtriple=x86_64-apple-xros9.0 < %s 2>&1 | FileCheck -check-prefix=ERR %s7; RUN: not llc -mtriple=x86_64-apple-ios8.0 < %s 2>&1 | FileCheck -check-prefix=ERR %s8; RUN: not llc -mtriple=x86_64-apple-tvos8.0 < %s 2>&1 | FileCheck -check-prefix=ERR %s9; RUN: not llc -mtriple=x86_64-apple-xros8.0 < %s 2>&1 | FileCheck -check-prefix=ERR %s10; RUN: not llc -mtriple=x86_64-apple-driverkit < %s 2>&1 | FileCheck -check-prefix=ERR %s11; RUN: not llc -mtriple=x86_64-apple-driverkit24.0 < %s 2>&1 | FileCheck -check-prefix=ERR %s12; RUN: llc < %s -mtriple=i686-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefix=GISEL-X8613; RUN: llc < %s -mtriple=x86_64-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefix=GISEL-X6414 15; ERR: no libcall available for fexp1016 17define x86_fp80 @test_exp10_f80(x86_fp80 %x) nounwind {18; LINUX-LABEL: test_exp10_f80:19; LINUX: # %bb.0:20; LINUX-NEXT: subq $24, %rsp21; LINUX-NEXT: fldt {{[0-9]+}}(%rsp)22; LINUX-NEXT: fstpt (%rsp)23; LINUX-NEXT: callq exp10l@PLT24; LINUX-NEXT: addq $24, %rsp25; LINUX-NEXT: retq26;27; GISEL-X86-LABEL: test_exp10_f80:28; GISEL-X86: # %bb.0:29; GISEL-X86-NEXT: subl $12, %esp30; GISEL-X86-NEXT: fldt {{[0-9]+}}(%esp)31; GISEL-X86-NEXT: fstpt (%esp)32; GISEL-X86-NEXT: calll exp10l33; GISEL-X86-NEXT: addl $12, %esp34; GISEL-X86-NEXT: retl35;36; GISEL-X64-LABEL: test_exp10_f80:37; GISEL-X64: # %bb.0:38; GISEL-X64-NEXT: subq $24, %rsp39; GISEL-X64-NEXT: fldt {{[0-9]+}}(%rsp)40; GISEL-X64-NEXT: fstpt (%rsp)41; GISEL-X64-NEXT: callq exp10l42; GISEL-X64-NEXT: addq $24, %rsp43; GISEL-X64-NEXT: retq44 %ret = call x86_fp80 @llvm.exp10.f80(x86_fp80 %x)45 ret x86_fp80 %ret46}47