You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
This commit is contained in:
parent
32d52ae4ca
commit
f32dbaf0b2
22
external/llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll
vendored
Normal file
22
external/llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
; RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
|
||||
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
|
||||
|
||||
|
||||
; GCN-LABEL: {{^}}shader_cc:
|
||||
; GCN: v_add_{{[iu]}}32_e32 v0, vcc, s8, v0
|
||||
define amdgpu_cs float @shader_cc(<4 x i32> inreg, <4 x i32> inreg, i32 inreg %w, float %v) {
|
||||
%vi = bitcast float %v to i32
|
||||
%x = add i32 %vi, %w
|
||||
%xf = bitcast i32 %x to float
|
||||
ret float %xf
|
||||
}
|
||||
|
||||
; GCN-LABEL: {{^}}kernel_cc:
|
||||
; GCN: s_endpgm
|
||||
define amdgpu_kernel void @kernel_cc(<4 x i32> inreg, <4 x i32> inreg, i32 inreg %w, float %v) {
|
||||
%vi = bitcast float %v to i32
|
||||
%x = add i32 %vi, %w
|
||||
%xf = bitcast i32 %x to float
|
||||
store float %xf, float addrspace(1)* undef
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user