Skip to content

Commit 4c600bd

Browse files
committed
[NVPTX] Add a test to verify the .version with sm_90(a)
1 parent 9f3e340 commit 4c600bd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/test/CodeGen/NVPTX/sm-version.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
; RUN: llc < %s -march=nvptx -mcpu=sm_75 | FileCheck %s --check-prefix=SM75
1515
; RUN: llc < %s -march=nvptx -mcpu=sm_80 | FileCheck %s --check-prefix=SM80
1616
; RUN: llc < %s -march=nvptx -mcpu=sm_86 | FileCheck %s --check-prefix=SM86
17+
; RUN: llc < %s -march=nvptx -mcpu=sm_90 | FileCheck %s --check-prefix=SM90
18+
; RUN: llc < %s -march=nvptx -mcpu=sm_90a | FileCheck %s --check-prefix=SM90a
1719

1820
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s --check-prefix=SM20
1921
; RUN: llc < %s -march=nvptx64 -mcpu=sm_21 | FileCheck %s --check-prefix=SM21
@@ -31,6 +33,8 @@
3133
; RUN: llc < %s -march=nvptx64 -mcpu=sm_75 | FileCheck %s --check-prefix=SM75
3234
; RUN: llc < %s -march=nvptx64 -mcpu=sm_80 | FileCheck %s --check-prefix=SM80
3335
; RUN: llc < %s -march=nvptx64 -mcpu=sm_86 | FileCheck %s --check-prefix=SM86
36+
; RUN: llc < %s -march=nvptx64 -mcpu=sm_90 | FileCheck %s --check-prefix=SM90
37+
; RUN: llc < %s -march=nvptx64 -mcpu=sm_90a | FileCheck %s --check-prefix=SM90a
3438

3539
; SM20: .version 3.2
3640
; SM21: .version 3.2
@@ -48,6 +52,8 @@
4852
; SM75: .version 6.3
4953
; SM80: .version 7.0
5054
; SM86: .version 7.1
55+
; SM90: .version 7.8
56+
; SM90a: .version 8.0
5157

5258
; SM20: .target sm_20
5359
; SM21: .target sm_21
@@ -65,3 +71,5 @@
6571
; SM75: .target sm_75
6672
; SM80: .target sm_80
6773
; SM86: .target sm_86
74+
; SM90: .target sm_90
75+
; SM90a: .target sm_90a

0 commit comments

Comments
 (0)