47 lines · plain
1; RUN: llc -mtriple=aarch64-linux-gnu < %s | FileCheck -check-prefix=LINUX %s2; RUN: llc -mtriple=aarch64-apple-macos10.9 < %s | FileCheck -check-prefix=APPLE %s3; RUN: llc -mtriple=aarch64-apple-ios7.0 < %s | FileCheck -check-prefix=APPLE %s4; RUN: llc -mtriple=aarch64-apple-tvos7.0 < %s | FileCheck -check-prefix=APPLE %s5; RUN: llc -mtriple=aarch64-apple-watchos7.0 < %s | FileCheck -check-prefix=APPLE %s6; RUN: llc -mtriple=aarch64-apple-xros7.0 < %s | FileCheck -check-prefix=APPLE %s7; RUN: llc -mtriple=aarch64-apple-tvos6.0 < %s | FileCheck -check-prefix=APPLE %s8; RUN: llc -mtriple=aarch64-apple-xros6.0 < %s | FileCheck -check-prefix=APPLE %s9; RUN: llc -mtriple=aarch64-apple-xros1.0 < %s | FileCheck -check-prefix=APPLE %s10; RUN: llc -mtriple=arm64-apple-driverkit < %s | FileCheck -check-prefix=APPLE %s11; RUN: llc -mtriple=arm64-apple-driverkit1.0 < %s | FileCheck -check-prefix=APPLE %s12; RUN: llc -mtriple=arm64-apple-driverkit24.0 < %s | FileCheck -check-prefix=APPLE %s13; RUN: llc -mtriple=arm64-apple-bridgeos < %s | FileCheck -check-prefix=APPLE %s14; RUN: llc -mtriple=arm64-apple-bridgeos1.0 < %s | FileCheck -check-prefix=APPLE %s15; RUN: llc -mtriple=arm64-apple-bridgeos9.0 < %s | FileCheck -check-prefix=APPLE %s16 17; RUN: not llc -mtriple=aarch64-apple-macos10.8 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s18; RUN: not llc -mtriple=aarch64-apple-ios6.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s19 20; Check exp10/exp10f is emitted as __exp10/__exp10f on assorted systems.21 22; ERR: no libcall available for fexp1023 24define float @test_exp10_f32(float %x) {25; LINUX-LABEL: test_exp10_f32:26; LINUX: // %bb.0:27; LINUX-NEXT: b exp10f28;29; APPLE-LABEL: test_exp10_f32:30; APPLE: ; %bb.0:31; APPLE-NEXT: b ___exp10f32 %ret = call float @llvm.exp10.f32(float %x)33 ret float %ret34}35 36define double @test_exp10_f64(double %x) {37; LINUX-LABEL: test_exp10_f64:38; LINUX: // %bb.0:39; LINUX-NEXT: b exp1040;41; APPLE-LABEL: test_exp10_f64:42; APPLE: ; %bb.0:43; APPLE-NEXT: b ___exp1044 %ret = call double @llvm.exp10.f64(double %x)45 ret double %ret46}47