2016-02-13 10:09:49 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs -show-mc-encoding < %s | FileCheck -check-prefix=VI %s
|
|
|
|
|
|
|
|
; VI-LABEL: {{^}}dpp_test:
|
2016-03-09 20:29:31 +08:00
|
|
|
; VI: v_mov_b32_dpp v0, v0 quad_perm:1 row_mask:0x1 bank_mask:0x1 bound_ctrl:0 ; encoding: [0xfa,0x02,0x00,0x7e,0x00,0x01,0x08,0x11]
|
2016-02-13 10:09:49 +08:00
|
|
|
define void @dpp_test(i32 addrspace(1)* %out, i32 %in) {
|
2016-03-09 20:29:31 +08:00
|
|
|
%tmp0 = call i32 @llvm.amdgcn.mov.dpp.i32(i32 %in, i32 1, i32 1, i32 1, i1 1) #0
|
2016-02-13 10:09:49 +08:00
|
|
|
store i32 %tmp0, i32 addrspace(1)* %out
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-03-09 20:29:31 +08:00
|
|
|
declare i32 @llvm.amdgcn.mov.dpp.i32(i32, i32, i32, i32, i1) #0
|
2016-02-13 10:09:49 +08:00
|
|
|
|
|
|
|
attributes #0 = { nounwind readnone convergent }
|