1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
3 ; FUNC-LABEL: @s_rotl_i64:
8 define void @s_rotl_i64(i64 addrspace(1)* %in, i64 %x, i64 %y) {
14 store i64 %3, i64 addrspace(1)* %in
18 ; FUNC-LABEL: @v_rotl_i64:
24 define void @v_rotl_i64(i64 addrspace(1)* %in, i64 addrspace(1)* %xptr, i64 addrspace(1)* %yptr) {
26 %x = load i64 addrspace(1)* %xptr, align 8
27 %y = load i64 addrspace(1)* %yptr, align 8
28 %tmp0 = shl i64 %x, %y
29 %tmp1 = sub i64 64, %y
30 %tmp2 = lshr i64 %x, %tmp1
31 %tmp3 = or i64 %tmp0, %tmp2
32 store i64 %tmp3, i64 addrspace(1)* %in, align 8