forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NVPTX] Associate a minimum PTX version for each SM architecture
When a new SM architecture is introduced, it is only supported by the current PTX version and later. Make sure we are using at least the minimum PTX version for the target architecture. This also removes support for PTX ISA < 3.2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233583 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
3637bab
commit e6d6461
Showing
10 changed files
with
18 additions
and
21 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
; RUN: llc < %s -march=nvptx64 -mcpu=sm_30 | FileCheck %s | ||
|
||
|
||
; CHECK: .version 3.2 | ||
; CHECK: .target sm_30 | ||
|
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
; RUN: llc < %s -march=nvptx64 -mcpu=sm_32 | FileCheck %s | ||
|
||
|
||
; CHECK: .version 4.0 | ||
; CHECK: .target sm_32 | ||
|
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
; RUN: llc < %s -march=nvptx64 -mcpu=sm_35 | FileCheck %s | ||
|
||
|
||
; CHECK: .version 3.2 | ||
; CHECK: .target sm_35 | ||
|
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
; RUN: llc < %s -march=nvptx64 -mcpu=sm_37 | FileCheck %s | ||
|
||
|
||
; CHECK: .version 4.1 | ||
; CHECK: .target sm_37 | ||
|
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,7 @@ | ||
; RUN: llc < %s -march=nvptx -mcpu=sm_50 | FileCheck %s | ||
; RUN: llc < %s -march=nvptx64 -mcpu=sm_50 | FileCheck %s | ||
|
||
|
||
; CHECK: .version 4.0 | ||
; CHECK: .target sm_50 | ||
|
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
; RUN: llc < %s -march=nvptx64 -mcpu=sm_52 | FileCheck %s | ||
|
||
|
||
; CHECK: .version 4.1 | ||
; CHECK: .target sm_52 | ||
|
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
; RUN: llc < %s -march=nvptx64 -mcpu=sm_53 | FileCheck %s | ||
|
||
|
||
; CHECK: .version 4.2 | ||
; CHECK: .target sm_53 | ||
|