xref: /llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.alignbyte.ll (revision 9e9907f1cfa424366fba58d9520f9305b537cec9)
1; RUN: llc -mtriple=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
2
3declare i32 @llvm.amdgcn.alignbyte(i32, i32, i32) #0
4
5; GCN-LABEL: {{^}}v_alignbyte_b32:
6; GCN: v_alignbyte_b32 {{[vs][0-9]+}}, {{[vs][0-9]+}}, {{[vs][0-9]+}}
7define amdgpu_kernel void @v_alignbyte_b32(ptr addrspace(1) %out, i32 %src1, i32 %src2, i32 %src3) #1 {
8  %val = call i32 @llvm.amdgcn.alignbyte(i32 %src1, i32 %src2, i32 %src3) #0
9  store i32 %val, ptr addrspace(1) %out
10  ret void
11}
12
13attributes #0 = { nounwind readnone }
14attributes #1 = { nounwind }
15