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

Side by Side Diff: test/Driver/malign-double.c

Issue 1323073010: Use LLVM args to handle -malign-double option (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-clang.git@master
Patch Set: Review feedback addressed Created 5 years, 3 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/Frontend/CompilerInvocation.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 // RUN: %clang -### -c -malign-double %s -target i686-unknown-linux 2>&1 \ 1 // RUN: %clang -v -c -malign-double %s -target i686-unknown-linux 2>&1 \
2 // RUN: | FileCheck --check-prefix=CHECK-I686 %s 2 // RUN: | FileCheck --check-prefix=CHECK-I686 %s
3 3
4 // CHECK-I686: -cc1 4 // CHECK-I686: -cc1
5 // CHECK-I686: +align-double 5 // CHECK-I686: -mllvm -malign-double
6 // CHECK-I686: "-mllvm" "-malign-double" 6 // CHECK-I686-NOT: backend data layout {{'[^']+'}} does not match expected targe t description {{'[^']+'}}
7 7
8 // RUN: %clang -### -c -malign-double %s -target x86-64-unknown-linux 2>&1 \ 8 // RUN: %clang -v -c -malign-double %s -target x86_64-unknown-linux 2>&1 \
9 // RUN: | FileCheck -check-prefix=CHECK-X86_64 %s 9 // RUN: | FileCheck --check-prefix=CHECK-X86_64 %s
10 10
11 // CHECK-X86_64: -cc1 11 // CHECK-X86_64: -cc1
12 // CHECK-X86_64-NOT: +align-double 12 // CHECK-X86_64: -mllvm -malign-double
13 // CHECK-X86_64-NOT: "-mllvm" "-malign-double" 13
14 // RUN: not %clang -v -c -mno-align-double %s -target i686-unknown-linux 2>&1 \
15 // RUN: | FileCheck --check-prefix=CHECK-NO-I686 %s
16
17 // CHECK-NO-I686: unknown argument: '-mno-align-double'
18
19 // RUN: not %clang -v -c -mno-align-double %s -target x86_64-unknown-linux 2>&1 \
20 // RUN: | FileCheck --check-prefix=CHECK-NO-X86_64 %s
21
22 // CHECK-NO-X86_64: unknown argument: '-mno-align-double'
OLDNEW
« no previous file with comments | « lib/Frontend/CompilerInvocation.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698