Skip to content

Commit f373200

Browse files
committed
[Clang][CIR][Driver][Test] Add contradictory options on lowering
1 parent 1c1193d commit f373200

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

clang/test/CIR/driver.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44
// RUN: FileCheck --input-file=%t2.cir %s -check-prefix=CIR
55
// RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fclangir-direct-lowering -S -emit-llvm %s -o %t1.ll
66
// RUN: FileCheck --input-file=%t1.ll %s -check-prefix=LLVM
7-
// RUN %clang -target x86_64-unknown-linux-gnu -fclangir -fno-clangir-direct-lowering -S -emit-llvm %s -o %t2.ll
8-
// RUN FileCheck --input-file=%t2.ll %s -check-prefix=CIR_STD_LLVM
9-
// RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fclangir-direct-lowering -c -emit-llvm %s -o %t1.bc
7+
// RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fno-clangir-direct-lowering -S -emit-llvm %s -o %t2.ll
8+
// RUN: FileCheck --input-file=%t2.ll %s -check-prefix=CIR_STD_LLVM
9+
// Test also the cases for both -fclangir-direct-lowering and -fno-clangir-direct-lowering,
10+
// with -fno-clangir-direct-lowering having the preference
11+
// RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fclangir-direct-lowering -fno-clangir-direct-lowering -S -emit-llvm %s -o %t2.ll
12+
// RUN: FileCheck --input-file=%t2.ll %s -check-prefix=CIR_STD_LLVM
13+
// RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fno-clangir-direct-lowering -fclangir-direct-lowering -c -emit-llvm %s -o %t1.bc
14+
// RUN: FileCheck --input-file=%t2.ll %s -check-prefix=CIR_STD_LLVM
1015
// RUN: llvm-dis %t1.bc -o %t1.bc.ll
1116
// RUN: FileCheck --input-file=%t1.bc.ll %s -check-prefix=LLVM
1217
// RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fno-clangir-direct-lowering -c -emit-llvm %s -o %t2.bc

0 commit comments

Comments
 (0)