Commit 4c600bd1 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

[NVPTX] Add a test to verify the .version with sm_90(a)

parent 9f3e3405
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@
; RUN: llc < %s -march=nvptx -mcpu=sm_75 | FileCheck %s --check-prefix=SM75
; RUN: llc < %s -march=nvptx -mcpu=sm_80 | FileCheck %s --check-prefix=SM80
; RUN: llc < %s -march=nvptx -mcpu=sm_86 | FileCheck %s --check-prefix=SM86
; RUN: llc < %s -march=nvptx -mcpu=sm_90 | FileCheck %s --check-prefix=SM90
; RUN: llc < %s -march=nvptx -mcpu=sm_90a | FileCheck %s --check-prefix=SM90a

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

; SM20: .version 3.2
; SM21: .version 3.2
@@ -48,6 +52,8 @@
; SM75: .version 6.3
; SM80: .version 7.0
; SM86: .version 7.1
; SM90: .version 7.8
; SM90a: .version 8.0

; SM20: .target sm_20
; SM21: .target sm_21
@@ -65,3 +71,5 @@
; SM75: .target sm_75
; SM80: .target sm_80
; SM86: .target sm_86
; SM90: .target sm_90
; SM90a: .target sm_90a