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

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

Issue 1208073002: [MIPS] Add support for direct-to-nacl in Clang (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-clang.git@master
Patch Set: Updated change. Created 5 years, 5 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 | « lib/Driver/Tools.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Test clang changes for NaCl Support including: 1 // Test clang changes for NaCl Support including:
2 // include paths, library paths, emulation, default static 2 // include paths, library paths, emulation, default static
3 // 3 //
4 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s \ 4 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s \
5 // RUN: -target i686-unknown-nacl -resource-dir foo 2>&1 \ 5 // RUN: -target i686-unknown-nacl -resource-dir foo 2>&1 \
6 // RUN: | FileCheck --check-prefix=CHECK-I686 %s 6 // RUN: | FileCheck --check-prefix=CHECK-I686 %s
7 // CHECK-I686: {{.*}}clang{{.*}}" "-cc1" 7 // CHECK-I686: {{.*}}clang{{.*}}" "-cc1"
8 // CHECK-I686: "-fuse-init-array" 8 // CHECK-I686: "-fuse-init-array"
9 // CHECK-I686: "-target-cpu" "pentium4" 9 // CHECK-I686: "-target-cpu" "pentium4"
10 // CHECK-I686: "-resource-dir" "foo" 10 // CHECK-I686: "-resource-dir" "foo"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // CHECK-ARM: as{{(.exe)?}}" 56 // CHECK-ARM: as{{(.exe)?}}"
57 // CHECK-ARM: "-mfloat-abi=hard" 57 // CHECK-ARM: "-mfloat-abi=hard"
58 // CHECK-ARM: ld{{(.exe)?}}" 58 // CHECK-ARM: ld{{(.exe)?}}"
59 // CHECK-ARM: "--build-id" 59 // CHECK-ARM: "--build-id"
60 // CHECK-ARM: "-m" "armelf_nacl" 60 // CHECK-ARM: "-m" "armelf_nacl"
61 // CHECK-ARM: "-static" 61 // CHECK-ARM: "-static"
62 // CHECK-ARM: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}arm-nacl{{/|\\\\}}lib" 62 // CHECK-ARM: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}arm-nacl{{/|\\\\}}lib"
63 // CHECK-ARM: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}arm-nacl{{/|\\\\}}usr{{/|\\\\}}lib" 63 // CHECK-ARM: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}arm-nacl{{/|\\\\}}usr{{/|\\\\}}lib"
64 // CHECK-ARM: "-Lfoo{{/|\\\\}}lib{{/|\\\\}}arm-nacl" 64 // CHECK-ARM: "-Lfoo{{/|\\\\}}lib{{/|\\\\}}arm-nacl"
65 // CHECK-ARM-NOT: -lpthread 65 // CHECK-ARM-NOT: -lpthread
66 //
67 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s \
68 // RUN: -target mipsel-unknown-nacl -resource-dir foo 2>&1 \
69 // RUN: | FileCheck --check-prefix=CHECK-MIPS %s
70 // CHECK-MIPS: {{.*}}clang{{.*}}" "-cc1"
71 // CHECK-MIPS: "-fuse-init-array"
72 // CHECK-MIPS: "-target-cpu" "mips32r2"
73 // CHECK-MIPS: "-target-abi" "o32"
74 // CHECK-MIPS: "-mfloat-abi" "hard"
75 // CHECK-MIPS: "-resource-dir" "foo"
76 // CHECK-MIPS: "-internal-isystem" "foo{{/|\\\\}}include"
77 // CHECK-MIPS: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}mipsel-nacl{{/|\ \\\}}usr{{/|\\\\}}include"
78 // CHECK-MIPS: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}mipsel-nacl{{/|\ \\\}}include"
79 // CHECK-MIPS-NOT: as{{(.exe)?}}"
80 // CHECK-MIPS: ld{{(.exe)?}}"
81 // CHECK-MIPS: "--build-id"
82 // CHECK-MIPS: "-m" "mipselelf_nacl"
83 // CHECK-MIPS: "-static"
84 // CHECK-MIPS: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}mipsel-nacl{{/|\\\\}}lib"
85 // CHECK-MIPS: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}mipsel-nacl{{/|\\\\}}usr{{/|\\\\}} lib"
86 // CHECK-MIPS: "-Lfoo{{/|\\\\}}lib{{/|\\\\}}mipsel-nacl"
87 // CHECK-MIPS: "-lpnacl_legacy"
88 // CHECK-MIPS-NOT: "-lpthread"
66 89
67 // Check that even when the target arch is just "arm" (as will be the case when 90 // Check that even when the target arch is just "arm" (as will be the case when
68 // it is inferred from the binary name) that we get the right ABI flags 91 // it is inferred from the binary name) that we get the right ABI flags
69 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s 2>&1 \ 92 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s 2>&1 \
70 // RUN: -target arm-nacl \ 93 // RUN: -target arm-nacl \
71 // RUN: | FileCheck --check-prefix=CHECK-ARM-NOV7 %s 94 // RUN: | FileCheck --check-prefix=CHECK-ARM-NOV7 %s
72 // CHECK-ARM-NOV7: "-triple" "armv7--nacl-gnueabihf" 95 // CHECK-ARM-NOV7: "-triple" "armv7--nacl-gnueabihf"
73 // CHECK-ARM-NOV7: "-target-abi" "aapcs-linux" 96 // CHECK-ARM-NOV7: "-target-abi" "aapcs-linux"
74 // CHECK-ARM-NOV7: "-mfloat-abi" "hard" 97 // CHECK-ARM-NOV7: "-mfloat-abi" "hard"
75 // CHECK-ARM-NOV7: as{{(.exe)?}}" 98 // CHECK-ARM-NOV7: as{{(.exe)?}}"
(...skipping 26 matching lines...) Expand all
102 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \ 125 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \
103 // RUN: -target x86_64-unknown-nacl -resource-dir foo 2>&1 \ 126 // RUN: -target x86_64-unknown-nacl -resource-dir foo 2>&1 \
104 // RUN: | FileCheck --check-prefix=CHECK-x86_64-CXX %s 127 // RUN: | FileCheck --check-prefix=CHECK-x86_64-CXX %s
105 // CHECK-x86_64-CXX: {{.*}}clang{{.*}}" "-cc1" 128 // CHECK-x86_64-CXX: {{.*}}clang{{.*}}" "-cc1"
106 // CHECK-x86_64-CXX: "-resource-dir" "foo" 129 // CHECK-x86_64-CXX: "-resource-dir" "foo"
107 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}v1" 130 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}v1"
108 // CHECK-x86_64-CXX: "-internal-isystem" "foo{{/|\\\\}}include" 131 // CHECK-x86_64-CXX: "-internal-isystem" "foo{{/|\\\\}}include"
109 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}usr{{/|\\\\}}include" 132 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}usr{{/|\\\\}}include"
110 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}include" 133 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}include"
111 // CHECK-x86_64-CXX: "-lpthread" 134 // CHECK-x86_64-CXX: "-lpthread"
135
136 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \
137 // RUN: -target mipsel-unknown-nacl -resource-dir foo 2>&1 \
138 // RUN: | FileCheck --check-prefix=CHECK-MIPS-CXX %s
139 // CHECK-MIPS-CXX: {{.*}}clang{{.*}}" "-cc1"
140 // CHECK-MIPS-CXX: "-resource-dir" "foo"
141 // CHECK-MIPS-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}mipsel-nacl{ {/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}v1"
142 // CHECK-MIPS-CXX: "-internal-isystem" "foo{{/|\\\\}}include"
143 // CHECK-MIPS-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}mipsel-nacl{ {/|\\\\}}usr{{/|\\\\}}include"
144 // CHECK-MIPS-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}mipsel-nacl{ {/|\\\\}}include"
145 // CHECK-MIPS-CXX: "-lnacl"
146 // CHECK-MIPS-CXX: "-lpthread"
OLDNEW
« no previous file with comments | « lib/Driver/Tools.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698