mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
fd8978b021
- Allow i16, i32, i64, float, and double types, using the native .u16, .u32, .u64, .f32, and .f64 PTX types. - Allow loading/storing of all primitive types. - Allow primitive types to be passed as parameters. - Allow selection of PTX Version and Shader Model as sub-target attributes. - Merge integer/floating-point test cases for load/store. - Use .u32 instead of .s32 to conform to output from NVidia nvcc compiler. Patch by Justin Holewinski git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126824 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
354 B
LLVM
10 lines
354 B
LLVM
; RUN: llc < %s -march=ptx -mattr=ptx14 | grep ".version 1.4"
|
|
; RUN: llc < %s -march=ptx -mattr=ptx20 | grep ".version 2.0"
|
|
; RUN: llc < %s -march=ptx -mattr=ptx21 | grep ".version 2.1"
|
|
; RUN: llc < %s -march=ptx -mattr=sm20 | grep ".target sm_20"
|
|
; RUN: llc < %s -march=ptx -mattr=sm13 | grep ".target sm_13"
|
|
|
|
define ptx_device void @t1() {
|
|
ret void
|
|
}
|