1 // RUN: %clang -print-effective-triple \
2 // RUN:   --target=arm-none-eabi \
3 // RUN:   | FileCheck %s --check-prefix=CHECK-DEFAULT
4 // RUN: %clang -print-effective-triple \
5 // RUN:   --target=armeb-none-eabi -mlittle-endian \
6 // RUN:   | FileCheck %s --check-prefix=CHECK-DEFAULT
7 // RUN: %clang -print-effective-triple \
8 // RUN:   --target=arm-none-eabihf -march=armv4t -mfloat-abi=softfp \
9 // RUN:   | FileCheck %s --check-prefix=CHECK-DEFAULT
10 // CHECK-DEFAULT: armv4t-none-unknown-eabi
11 
12 // RUN: %clang -print-effective-triple \
13 // RUN:   --target=armeb-none-eabi \
14 // RUN:   | FileCheck %s --check-prefix=CHECK-EB
15 // RUN: %clang -print-effective-triple \
16 // RUN:   --target=arm-none-eabi -mbig-endian \
17 // RUN:   | FileCheck %s --check-prefix=CHECK-EB
18 // CHECK-EB: armebv4t-none-unknown-eabi
19 
20 // RUN: %clang -print-effective-triple \
21 // RUN:   --target=arm-none-eabihf -march=armv4t \
22 // RUN:   | FileCheck %s --check-prefix=CHECK-HF
23 // RUN: %clang -print-effective-triple \
24 // RUN:   --target=arm-none-eabi -mfloat-abi=hard \
25 // RUN:   | FileCheck %s --check-prefix=CHECK-HF
26 // CHECK-HF: armv4t-none-unknown-eabihf
27 
28 // RUN: %clang -print-effective-triple \
29 // RUN:   --target=armeb-none-eabihf -march=armv4t \
30 // RUN:   | FileCheck %s --check-prefix=CHECK-EB-HF
31 // RUN: %clang -print-effective-triple \
32 // RUN:   --target=armeb-none-eabi -mfloat-abi=hard \
33 // RUN:   | FileCheck %s --check-prefix=CHECK-EB-HF
34 // RUN: %clang -print-effective-triple -march=armv4t \
35 // RUN:   --target=arm-none-eabihf -mbig-endian \
36 // RUN:   | FileCheck %s --check-prefix=CHECK-EB-HF
37 // RUN: %clang -print-effective-triple \
38 // RUN:   --target=arm-none-eabi -mbig-endian -mfloat-abi=hard \
39 // RUN:   | FileCheck %s --check-prefix=CHECK-EB-HF
40 // CHECK-EB-HF: armebv4t-none-unknown-eabihf
41 
42 // RUN: %clang -print-effective-triple \
43 // RUN:   --target=arm-none-eabi -march=armv8m.main -mbig-endian -mfloat-abi=hard \
44 // RUN:   | FileCheck %s --check-prefix=CHECK-V8M-EB-HF
45 // RUN: %clang -print-effective-triple \
46 // RUN:   --target=arm-none-eabi -mcpu=cortex-m33 -mbig-endian -mfloat-abi=hard \
47 // RUN:   | FileCheck %s --check-prefix=CHECK-V8M-EB-HF
48 // CHECK-V8M-EB-HF: thumbebv8m.main-none-unknown-eabihf
49