|
5 | 5 | // RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fclangir-direct-lowering -S -emit-llvm %s -o %t1.ll
|
6 | 6 | // RUN: FileCheck --input-file=%t1.ll %s -check-prefix=LLVM
|
7 | 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=LLVM |
9 |
| -// RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fclangir-direct-lowering -c -emit-llvm %s -o %t1.bc |
| 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 |
10 | 15 | // RUN: llvm-dis %t1.bc -o %t1.bc.ll
|
11 | 16 | // RUN: FileCheck --input-file=%t1.bc.ll %s -check-prefix=LLVM
|
12 | 17 | // RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -fno-clangir-direct-lowering -c -emit-llvm %s -o %t2.bc
|
13 | 18 | // RUN: llvm-dis %t2.bc -o %t2.bc.ll
|
14 |
| -// RUN: FileCheck --input-file=%t2.bc.ll %s -check-prefix=LLVM |
| 19 | +// RUN: FileCheck --input-file=%t2.bc.ll %s -check-prefix=CIR_STD_LLVM |
15 | 20 | // RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -c %s -o %t.o
|
16 | 21 | // RUN: llvm-objdump -d %t.o | FileCheck %s -check-prefix=OBJ
|
17 | 22 | // RUN: %clang -target x86_64-unknown-linux-gnu -fclangir -clangir-disable-passes -S -Xclang -emit-cir %s -o %t.cir
|
@@ -39,6 +44,10 @@ void foo(void) {}
|
39 | 44 | // LLVM-NEXT: ret void
|
40 | 45 | // LLVM-NEXT: }
|
41 | 46 |
|
| 47 | +// CIR_STD_LLVM: define void @foo() |
| 48 | +// CIR_STD_LLVM-NEXT: ret void |
| 49 | +// CIR_STD_LLVM-NEXT: } |
| 50 | + |
42 | 51 | // LLVM_MACOS: define void @foo()
|
43 | 52 | // LLVM_MACOS-NEXT: ret void
|
44 | 53 | // LLVM_MACOS-NEXT: }
|
|
0 commit comments