Skip to content

Commit e83ba1e

Browse files
committed
[Darwin] Add exp10(f) tests for BridgeOS & Driverkit.
1 parent ea98dc8 commit e83ba1e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

llvm/test/CodeGen/AArch64/exp10-libcall-names.ll

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
; RUN: llc -mtriple=aarch64-apple-tvos6.0 < %s | FileCheck -check-prefix=APPLE %s
88
; RUN: llc -mtriple=aarch64-apple-xros6.0 < %s | FileCheck -check-prefix=APPLE %s
99
; RUN: llc -mtriple=aarch64-apple-xros1.0 < %s | FileCheck -check-prefix=APPLE %s
10+
; RUN: llc -mtriple=arm64-apple-driverkit < %s | FileCheck -check-prefix=MISSED %s
11+
; RUN: llc -mtriple=arm64-apple-driverkit1.0 < %s | FileCheck -check-prefix=MISSED %s
12+
; RUN: llc -mtriple=arm64-apple-driverkit24.0 < %s | FileCheck -check-prefix=MISSED %s
13+
; RUN: llc -mtriple=arm64-apple-bridgeos < %s | FileCheck -check-prefix=LINUX %s
14+
; RUN: llc -mtriple=arm64-apple-bridgeos1.0 < %s | FileCheck -check-prefix=LINUX %s
15+
; RUN: llc -mtriple=arm64-apple-bridgeos9.0 < %s | FileCheck -check-prefix=LINUX %s
1016

1117
; RUN: not llc -mtriple=aarch64-apple-macos10.8 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
1218
; RUN: not llc -mtriple=aarch64-apple-ios6.0 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
@@ -23,6 +29,11 @@ define float @test_exp10_f32(float %x) {
2329
; APPLE-LABEL: test_exp10_f32:
2430
; APPLE: ; %bb.0:
2531
; APPLE-NEXT: b ___exp10f
32+
;
33+
; MISSED-LABEL: test_exp10_f32:
34+
; MISSED: ; %bb.0:
35+
; MISSED-NEXT: b _exp10f
36+
;
2637
%ret = call float @llvm.exp10.f32(float %x)
2738
ret float %ret
2839
}
@@ -35,6 +46,11 @@ define double @test_exp10_f64(double %x) {
3546
; APPLE-LABEL: test_exp10_f64:
3647
; APPLE: ; %bb.0:
3748
; APPLE-NEXT: b ___exp10
49+
;
50+
; MISSED-LABEL: test_exp10_f64:
51+
; MISSED: ; %bb.0:
52+
; MISSED-NEXT: b _exp10
53+
;
3854
%ret = call double @llvm.exp10.f64(double %x)
3955
ret double %ret
4056
}

llvm/test/CodeGen/X86/exp10-libcall-names.ll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
; RUN: llc -mtriple=x86_64-apple-ios8.0 < %s | FileCheck -check-prefix=APPLE %s
99
; RUN: llc -mtriple=x86_64-apple-tvos8.0 < %s | FileCheck -check-prefix=APPLE %s
1010
; RUN: llc -mtriple=x86_64-apple-xros8.0 < %s | FileCheck -check-prefix=APPLE %s
11+
; RUN: llc -mtriple=x86_64-apple-driverkit < %s | FileCheck -check-prefix=MISSED %s
12+
; RUN: llc -mtriple=x86_64-apple-driverkit24.0 < %s | FileCheck -check-prefix=MISSED %s
1113

1214
; RUN: not llc -mtriple=x86_64-apple-macos10.8 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
1315
; Check exp10/exp10f is emitted as __exp10/__exp10f on assorted systems.
@@ -22,6 +24,11 @@ define float @test_exp10_f32(float %x) {
2224
; APPLE-LABEL: test_exp10_f32:
2325
; APPLE: ## %bb.0:
2426
; APPLE-NEXT: jmp ___exp10f ## TAILCALL
27+
;
28+
; MISSED-LABEL: test_exp10_f32:
29+
; MISSED: ## %bb.0:
30+
; MISSED-NEXT: jmp _exp10f ## TAILCALL
31+
2532
%ret = call float @llvm.exp10.f32(float %x)
2633
ret float %ret
2734
}
@@ -34,6 +41,11 @@ define double @test_exp10_f64(double %x) {
3441
; APPLE-LABEL: test_exp10_f64:
3542
; APPLE: ## %bb.0:
3643
; APPLE-NEXT: jmp ___exp10 ## TAILCALL
44+
;
45+
; MISSED-LABEL: test_exp10_f64:
46+
; MISSED: ## %bb.0:
47+
; MISSED-NEXT: jmp _exp10 ## TAILCALL
48+
;
3749
%ret = call double @llvm.exp10.f64(double %x)
3850
ret double %ret
3951
}

0 commit comments

Comments
 (0)