Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: test/Driver/nacl-direct.c

Issue 887223008: Rebased localmods in clang to 223109. (Closed)
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/CodeGen/target-data.c ('k') | test/lit.cfg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Test clang changes for NaCl Support including:
2 // include paths, library paths, emulation, default static
3 //
4 // RUN: %clang -### -o %t.o %s 2>&1 \
5 // RUN: -target i686-unknown-nacl \
6 // RUN: | FileCheck --check-prefix=CHECK-I686 %s
7 // CHECK-I686: {{.*}}clang{{.*}}" "-cc1"
8 // CHECK-I686: "-fuse-init-array"
9 // CHECK-I686: "-target-cpu" "pentium4"
10 // CHECK-I686: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]"
11 // CHECK-I686: "-internal-isystem" "{{.*}}/../lib/clang/[[VER]]/include"
12 // CHECK-I686: "-internal-isystem" "{{.*}}/../x86_64-nacl/usr/include"
13 // CHECK-I686: "-internal-isystem" "{{.*}}/../x86_64-nacl/include"
14 // CHECK-I686: /as" "--32"
15 // CHECK-I686: /ld"
16 // CHECK-I686: "--build-id"
17 // CHECK-I686: "-m" "elf_i386_nacl"
18 // CHECK-I686: "-static"
19 // CHECK-I686: "-L{{.*}}/../x86_64-nacl/lib32"
20 // CHECK-I686: "-L{{.*}}/../x86_64-nacl/usr/lib32"
21 // CHECK-I686: "-L{{.*}}/../lib/clang/[[VER]]/lib/i686-nacl"
22 //
23 // RUN: %clang -### -o %t.o %s 2>&1 \
24 // RUN: -target x86_64-unknown-nacl \
25 // RUN: | FileCheck --check-prefix=CHECK-x86_64 %s
26 // CHECK-x86_64: {{.*}}clang{{.*}}" "-cc1"
27 // CHECK-x86_64: "-fuse-init-array"
28 // CHECK-x86_64: "-target-cpu" "x86-64"
29 // CHECK-x86_64: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]"
30 // CHECK-x86_64: "-internal-isystem" "{{.*}}/../lib/clang/[[VER]]/include"
31 // CHECK-x86_64: "-internal-isystem" "{{.*}}/../x86_64-nacl/usr/include"
32 // CHECK-x86_64: "-internal-isystem" "{{.*}}/../x86_64-nacl/include"
33 // CHECK-x86_64: /as" "--64"
34 // CHECK-x86_64: /ld"
35 // CHECK-x86_64: "--build-id"
36 // CHECK-x86_64: "-m" "elf_x86_64_nacl"
37 // CHECK-x86_64: "-static"
38 // CHECK-x86_64: "-L{{.*}}/../x86_64-nacl/lib"
39 // CHECK-x86_64: "-L{{.*}}/../x86_64-nacl/usr/lib"
40 // CHECK-x86_64: "-L{{.*}}/../lib/clang/[[VER]]/lib/x86_64-nacl"
41 //
42 // RUN: %clang -### -o %t.o %s 2>&1 \
43 // RUN: -target armv7a-unknown-nacl-gnueabihf \
44 // RUN: | FileCheck --check-prefix=CHECK-ARM %s
45 // CHECK-ARM: {{.*}}clang{{.*}}" "-cc1"
46 // CHECK-ARM: "-fuse-init-array"
47 // CHECK-ARM: "-target-cpu" "cortex-a8"
48 // CHECK-ARM: "-target-abi" "aapcs-linux"
49 // CHECK-ARM: "-mfloat-abi" "hard"
50 // CHECK-ARM: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]"
51 // CHECK-ARM: "-internal-isystem" "{{.*}}/../lib/clang/[[VER]]/include"
52 // CHECK-ARM: "-internal-isystem" "{{.*}}/../arm-nacl/usr/include"
53 // CHECK-ARM: "-internal-isystem" "{{.*}}/../arm-nacl/include"
54 // CHECK-ARM: /as"
55 // CHECK-ARM: /ld"
56 // CHECK-ARM: "--build-id"
57 // CHECK-ARM: "-m" "armelf_nacl"
58 // CHECK-ARM: "-static"
59 // CHECK-ARM: "-L{{.*}}/../arm-nacl/lib"
60 // CHECK-ARM: "-L{{.*}}/../arm-nacl/usr/lib"
61 // CHECK-ARM: "-L{{.*}}/../lib/clang/[[VER]]/lib/arm-nacl"
62
63 // Check that even when the target arch is just "arm" (as will be the case when
64 // it is inferred from the binary name) that we get the right ABI flags
65 // RUN: %clang -### -o %t.o %s 2>&1 \
66 // RUN: -target arm-nacl \
67 // RUN: | FileCheck --check-prefix=CHECK-ARM-NOV7 %s
68 // CHECK-ARM-NOV7: "-triple" "armv7--nacl-gnueabihf"
69 // CHECK-ARM-NOV7: "-target-abi" "aapcs-linux"
70 // CHECK-ARM-NOV7: "-mfloat-abi" "hard"
71
72 // Check C++ include directories
73
74 // RUN: %clang -x c++ -### -o %t.o %s 2>&1 \
75 // RUN: -target armv7a-unknown-nacl-gnueabihf \
76 // RUN: | FileCheck --check-prefix=CHECK-ARM-CXX %s
77 // CHECK-ARM-CXX: {{.*}}clang{{.*}}" "-cc1"
78 // CHECK-ARM-CXX: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]"
79 // CHECK-ARM-CXX: "-internal-isystem" "{{.*}}/../arm-nacl/include/c++/v1"
80 // CHECK-ARM-CXX: "-internal-isystem" "{{.*}}/../lib/clang/[[VER]]/include"
81 // CHECK-ARM-CXX: "-internal-isystem" "{{.*}}/../arm-nacl/usr/include"
82 // CHECK-ARM-CXX: "-internal-isystem" "{{.*}}/../arm-nacl/include"
83 // CHECK-ARM-CXX: "-lpthread"
84
85 // RUN: %clang -x c++ -### -o %t.o %s 2>&1 \
86 // RUN: -target i686-unknown-nacl \
87 // RUN: | FileCheck --check-prefix=CHECK-I686-CXX %s
88 // CHECK-I686-CXX: {{.*}}clang{{.*}}" "-cc1"
89 // CHECK-I686-CXX: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]"
90 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/include/c++/v1"
91 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}/../lib/clang/[[VER]]/include"
92 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/usr/include"
93 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/include"
94 // CHECK-I686-CXX: "-lpthread"
95
96 //
97 // RUN: %clang -x c++ -### -o %t.o %s 2>&1 \
98 // RUN: -target x86_64-unknown-nacl \
99 // RUN: | FileCheck --check-prefix=CHECK-x86_64-CXX %s
100 // CHECK-x86_64-CXX: {{.*}}clang{{.*}}" "-cc1"
101 // CHECK-x86_64-CXX: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]"
102 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/include/c++/v1"
103 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../lib/clang/[[VER]]/include"
104 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/usr/include"
105 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/include"
106 // CHECK-x86_64-CXX: "-lpthread"
OLDNEW
« no previous file with comments | « test/CodeGen/target-data.c ('k') | test/lit.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698