1; This test assembles this file to bitcode with all supported target
2; API versions, then checks that the bitcode file was generated and
3; has the right magic number.
4
5; RUN: %llvm-rs-as -target-api 11 %s -o %t11
6; RUN: xxd -ps -l 4 %t11 | FileCheck %s
7; RUN: %llvm-rs-as -target-api 12 %s -o %t12
8; RUN: xxd -ps -l 4 %t12 | FileCheck %s
9; RUN: %llvm-rs-as -target-api 13 %s -o %t13
10; RUN: xxd -ps -l 4 %t13 | FileCheck %s
11; RUN: %llvm-rs-as -target-api 14 %s -o %t14
12; RUN: xxd -ps -l 4 %t14 | FileCheck %s
13; RUN: %llvm-rs-as -target-api 15 %s -o %t15
14; RUN: xxd -ps -l 4 %t15 | FileCheck %s
15; RUN: %llvm-rs-as -target-api 16 %s -o %t16
16; RUN: xxd -ps -l 4 %t16 | FileCheck %s
17; RUN: %llvm-rs-as -target-api 17 %s -o %t17
18; RUN: xxd -ps -l 4 %t17 | FileCheck %s
19; RUN: %llvm-rs-as -target-api 18 %s -o %t18
20; RUN: xxd -ps -l 4 %t18 | FileCheck %s
21; RUN: %llvm-rs-as -target-api 19 %s -o %t19
22; RUN: xxd -ps -l 4 %t19 | FileCheck %s
23; RUN: %llvm-rs-as -target-api 20 %s -o %t20
24; RUN: xxd -ps -l 4 %t20 | FileCheck %s
25; RUN: %llvm-rs-as -target-api 21 %s -o %t21
26; RUN: xxd -ps -l 4 %t21 | FileCheck %s
27; RUN: %llvm-rs-as -target-api 22 %s -o %t22
28; RUN: xxd -ps -l 4 %t22 | FileCheck %s
29; RUN: %llvm-rs-as -target-api 23 %s -o %t23
30; RUN: xxd -ps -l 4 %t23 | FileCheck %s
31
32; RUN: %llvm-rs-as -target-api 0 %s -o %t0
33; RUN: xxd -ps -l 4 %t0 | FileCheck %s
34
35; Check for the magic number.
36
37; CHECK: dec0170b
38
39; ModuleID = 'kernel.bc'
40target datalayout = "e-p:32:32-i64:64-v128:64:128-n32-S64"
41target triple = "armv7-none-linux-gnueabi"
42
43!llvm.module.flags = !{!0, !1}
44!llvm.ident = !{!2}
45!\23pragma = !{!3, !4}
46
47!0 = !{i32 1, !"wchar_size", i32 4}
48!1 = !{i32 1, !"min_enum_size", i32 4}
49!2 = !{!"clang version 3.6 "}
50!3 = !{!"version", !"1"}
51!4 = !{!"java_package_name", !"foo"}
52