Skip to content

Commit 213f584

Browse files
committed
Removed some test lines to save run time for LIT tests
And updated -target option to --target in cl-x86-flags.c and x86-target-features.c tests as -target option was deprecated.
1 parent c845e22 commit 213f584

File tree

2 files changed

+55
-92
lines changed

2 files changed

+55
-92
lines changed

clang/test/Driver/cl-x86-flags.c

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -143,45 +143,8 @@ void f(void) {
143143
// NON-APX: error: unsupported option '-mapx-features=|-mapxf' for target 'i386'
144144
// NON-APX-NOT: error: {{.*}} -mapx-features=
145145

146-
// RUN: %clang_cl -target x86_64-pc-windows -mapxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=APXF %s
147-
// RUN: %clang_cl -target x86_64-pc-windows -mno-apxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-APXF %s
148-
// RUN: %clang_cl -target x86_64-pc-windows -mno-apxf -mapxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=APXF %s
149-
// RUN: %clang_cl -target x86_64-pc-windows -mapxf -mno-apxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-APXF %s
150-
//
146+
// RUN: %clang_cl --target=x86_64-pc-windows -mapxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=APXF %s
147+
// RUN: %clang_cl --target=x86_64-pc-windows -mapxf -mno-apxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-APXF %s
148+
// RUN: %clang_cl --target=x86_64-pc-windows -mapx-features=egpr,push2pop2,ppx,ndd,ccmp,nf,cf,zu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=APXF %s
151149
// APXF: "-target-feature" "+egpr" "-target-feature" "+push2pop2" "-target-feature" "+ppx" "-target-feature" "+ndd" "-target-feature" "+ccmp" "-target-feature" "+nf" "-target-feature" "+cf" "-target-feature" "+zu"
152150
// NO-APXF: "-target-feature" "-egpr" "-target-feature" "-push2pop2" "-target-feature" "-ppx" "-target-feature" "-ndd" "-target-feature" "-ccmp" "-target-feature" "-nf" "-target-feature" "-cf" "-target-feature" "-zu"
153-
154-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR %s
155-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=push2pop2 %s -### -o %t.o 2>&1 | FileCheck -check-prefix=PUSH2POP2 %s
156-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=ppx %s -### -o %t.o 2>&1 | FileCheck -check-prefix=PPX %s
157-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NDD %s
158-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=ccmp %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CCMP %s
159-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=nf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NF %s
160-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=cf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CF %s
161-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=zu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=ZU %s
162-
// EGPR: "-target-feature" "+egpr"
163-
// PUSH2POP2: "-target-feature" "+push2pop2"
164-
// PPX: "-target-feature" "+ppx"
165-
// NDD: "-target-feature" "+ndd"
166-
// CCMP: "-target-feature" "+ccmp"
167-
// NF: "-target-feature" "+nf"
168-
// CF: "-target-feature" "+cf"
169-
// ZU: "-target-feature" "+zu"
170-
171-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s
172-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=egpr -mapx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s
173-
// RUN: %clang_cl -target x86_64-pc-windows -mno-apx-features=egpr -mno-apx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NO-NDD %s
174-
// RUN: %clang_cl -target x86_64-pc-windows -mno-apx-features=egpr -mapx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s
175-
// RUN: %clang_cl -target x86_64-pc-windows -mno-apx-features=egpr,ndd -mapx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NO-NDD %s
176-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=egpr,ndd -mno-apx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NDD %s
177-
// RUN: %clang_cl -target x86_64-pc-windows -mapx-features=egpr -mno-apx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NO-NDD %s
178-
//
179-
// EGPR-NDD: "-target-feature" "+egpr" "-target-feature" "+ndd"
180-
// EGPR-NO-NDD: "-target-feature" "-ndd" "-target-feature" "+egpr"
181-
// NO-EGPR-NDD: "-target-feature" "+ndd" "-target-feature" "-egpr"
182-
// NO-EGPR-NO-NDD: "-target-feature" "-egpr" "-target-feature" "-ndd"
183-
184-
// RUN: not %clang_cl -target x86_64-pc-windows -mapx-features=egpr,foo,bar %s -### -o %t.o 2>&1 | FileCheck -check-prefix=ERROR %s
185-
//
186-
// ERROR: unsupported argument 'foo' to option '-mapx-features='
187-
// ERROR: unsupported argument 'bar' to option '-mapx-features='

0 commit comments

Comments
 (0)