mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
[NVPTX] Add missing .v4 qualifier on vector store instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213276 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7be793b8cd
commit
07bc0b6ae6
@ -1917,7 +1917,7 @@ def StoreParamV2I8 : StoreParamV2Inst<Int16Regs, ".b8">;
|
||||
def StoreParamV4I32 : NVPTXInst<(outs), (ins Int32Regs:$val, Int32Regs:$val2,
|
||||
Int32Regs:$val3, Int32Regs:$val4,
|
||||
i32imm:$a, i32imm:$b),
|
||||
"st.param.b32\t[param$a+$b], {{$val, $val2, $val3, $val4}};",
|
||||
"st.param.v4.b32\t[param$a+$b], {{$val, $val2, $val3, $val4}};",
|
||||
[]>;
|
||||
|
||||
def StoreParamV4I16 : NVPTXInst<(outs), (ins Int16Regs:$val, Int16Regs:$val2,
|
||||
|
12
test/CodeGen/NVPTX/vector-call.ll
Normal file
12
test/CodeGen/NVPTX/vector-call.ll
Normal file
@ -0,0 +1,12 @@
|
||||
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
|
||||
|
||||
target triple = "nvptx-unknown-cuda"
|
||||
|
||||
declare void @bar(<4 x i32>)
|
||||
|
||||
; CHECK-LABEL @foo
|
||||
define void @foo(<4 x i32> %a) {
|
||||
; CHECK: st.param.v4.b32
|
||||
tail call void @bar(<4 x i32> %a)
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user