-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Driver] Fix test failures when in classic Flang mode
Add a new lit feature tag "classic_flang" to select which tests can or cannot be run when the driver is built for classic Flang. Handle LLVM_ENABLE_CLASSIC_FLANG in llvm/cmake/modules/HandleLLVMOptions.cmake instead of clang/CMakeLists.txt so that macro works in both clang and llvm.
- Loading branch information
1 parent
f7428cd
commit 815dbcc
Showing
17 changed files
with
76 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
! Check that the driver can invoke flang1 and flang2 to compile Fortran with | ||
! --driver-mode=flang (default when the file extension is .f95). | ||
|
||
! REQUIRES: classic_flang | ||
|
||
! RUN: %clang -target x86_64-unknown-linux-gnu -integrated-as -c %s -### 2>&1 \ | ||
! RUN: | FileCheck --check-prefix=CHECK-OBJECT %s | ||
! CHECK-OBJECT: flang1 | ||
! CHECK-OBJECT: flang2 | ||
! CHECK-OBJECT-SAME: "-asm" [[LLFILE:.*.ll]] | ||
! CHECK-OBJECT-NOT: cc1as | ||
! CHECK-OBJECT: clang | ||
! CHECK-OBJECT-SAME: -cc1 | ||
! CHECK-OBJECT-SAME: "-o" "classic_flang.o" | ||
! CHECK-OBJECT-SAME: "-x" "ir" | ||
! CHECK-OBJECT-SAME: [[LLFILE]] | ||
|
||
! RUN: %clang -target x86_64-unknown-linux-gnu -integrated-as -S %s -### 2>&1 \ | ||
! RUN: | FileCheck --check-prefix=CHECK-ASM %s | ||
! CHECK-ASM: flang1 | ||
! CHECK-ASM: flang2 | ||
! CHECK-ASM-SAME: "-asm" [[LLFILE:.*.ll]] | ||
! CHECK-ASM-NOT: cc1as | ||
! CHECK-ASM: clang | ||
! CHECK-ASM-SAME: -cc1 | ||
! CHECK-ASM-SAME: "-o" "classic_flang.s" | ||
! CHECK-ASM-SAME: "-x" "ir" | ||
! CHECK-ASM-SAME: [[LLFILE]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s | ||
; UNSUPPORTED: classic_flang | ||
|
||
; CHECK: <stdin>:[[@LINE+1]]:30: error: 'name' cannot be empty | ||
!0 = !DIGlobalVariable(name: "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s | ||
; UNSUPPORTED: classic_flang | ||
|
||
; CHECK: <stdin>:[[@LINE+1]]:24: error: missing required field 'name' | ||
!0 = !DIGlobalVariable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters