- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathembed-bitcode-tvos.ll
20 lines (16 loc) · 712 Bytes
/
embed-bitcode-tvos.ll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; REQUIRES: CODEGENERATOR=AArch64
; RUN: llvm-as %s -o %t.bc
; RUN: %swiftc_driver_plain -frontend -target arm64-apple-tvos9 -c -module-name someModule -embed-bitcode -disable-llvm-optzns -o %t2.o %t.bc -dump-clang-diagnostics 2> %t.diags.txt
; RUN: llvm-objdump --macho --private-headers %t2.o | %FileCheck %s
; RUN: %FileCheck -check-prefix CHECK-IMPORTER %s < %t.diags.txt
targettriple = "arm64-apple-tvos9.0"
targetdatalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
; CHECK: LC_VERSION_MIN_TVOS
; CHECK-IMPORTER: clang
; CHECK-IMPORTER: -fembed-bitcode
; CHECK-IMPORTER: -target
; CHECK-IMPORTER: arm64-apple-tvos9
; CHECK-IMPORTER-NOT: argument unused
definei32@f0() nounwindssp {
reti320
}