1; RUN: llc -march=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(i32 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, i32 addrspace(1)* %out
10  ret void
11}
12
13attributes #0 = { nounwind readnone }
14attributes #1 = { nounwind }
15