mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
9830b459be
Summary: With isSingleValueType starting to treat vector types as single-value types, code that uses this interface needs to be updated. Test Plan: vector-global.ll nvcl-param-align.ll Reviewers: jholewinski Reviewed By: jholewinski Subscribers: llvm-commits, meheff, eliben, jholewinski Differential Revision: http://reviews.llvm.org/D6573 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224440 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
558 B
LLVM
17 lines
558 B
LLVM
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
|
|
|
|
target triple = "nvptx-unknown-nvcl"
|
|
|
|
; CHECK-LABEL: .entry foo(
|
|
define void @foo(i64 %img, i64 %sampler, <5 x float>* %v) {
|
|
; The parameter alignment should be the next power of 2 of 5xsizeof(float),
|
|
; which is 32.
|
|
; CHECK: .param .u32 .ptr .align 32 foo_param_2
|
|
ret void
|
|
}
|
|
|
|
!nvvm.annotations = !{!1, !2, !3}
|
|
!1 = !{void (i64, i64, <5 x float>*)* @foo, !"kernel", i32 1}
|
|
!2 = !{void (i64, i64, <5 x float>*)* @foo, !"rdoimage", i32 0}
|
|
!3 = !{void (i64, i64, <5 x float>*)* @foo, !"sampler", i32 1}
|