]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Driver/darwin-arch-default.c
Vendor import of clang RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1):
[FreeBSD/FreeBSD.git] / test / Driver / darwin-arch-default.c
1 // Check that the name of the arch we bind is "ppc" not "powerpc".
2 //
3 // RUN: %clang -target powerpc-apple-darwin8 -### \
4 // RUN:   -ccc-print-phases %s 2> %t
5 // RUN: FileCheck --check-prefix=CHECK-BIND-PPC < %t %s
6 //
7 // CHECK-BIND-PPC: bind-arch, "ppc"
8 //
9 // RUN: %clang -target powerpc64-apple-darwin8 -### \
10 // RUN:   -ccc-print-phases %s 2> %t
11 // RUN: FileCheck --check-prefix=CHECK-BIND-PPC64 < %t %s
12 //
13 // CHECK-BIND-PPC64: bind-arch, "ppc64"
14
15 // Check that the correct arch name is passed to the external assembler
16 //
17 // RUN: %clang -target powerpc-apple-darwin8 -### \
18 // RUN:   -no-integrated-as -c %s 2> %t
19 // RUN: FileCheck --check-prefix=CHECK-AS-PPC < %t %s
20 //
21 // CHECK-AS-PPC: {{as(.exe)?"}}
22 // CHECK-AS-PPC: "-arch" "ppc"
23 //
24 // RUN: %clang -target powerpc64-apple-darwin8 -### \
25 // RUN:   -no-integrated-as -c %s 2> %t
26 // RUN: FileCheck --check-prefix=CHECK-AS-PPC64 < %t %s
27 //
28 // CHECK-AS-PPC64: {{as(.exe)?"}}
29 // CHECK-AS-PPC64: "-arch" "ppc64"
30
31 // Check that the correct arch name is passed to the external linker
32 //
33 // RUN: %clang -target powerpc-apple-darwin8 -### %s 2> %t
34 // RUN: FileCheck --check-prefix=CHECK-LD-PPC < %t %s
35 //
36 // CHECK-LD-PPC: {{ld(.exe)?"}}
37 // CHECK-LD-PPC: "-arch" "ppc"
38 //
39 // RUN: %clang -target powerpc64-apple-darwin8 -### %s 2> %t
40 // RUN: FileCheck --check-prefix=CHECK-LD-PPC64 < %t %s
41 //
42 // CHECK-LD-PPC64: {{ld(.exe)?"}}
43 // CHECK-LD-PPC64: "-arch" "ppc64"