-
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.
- Loading branch information
Showing
11 changed files
with
49 additions
and
1 deletion.
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