2016-09-01 05:52:27 +08:00
|
|
|
; RUN: llc -march=r600 -mcpu=cypress -verify-machineinstrs < %s | FileCheck -check-prefix=EG %s
|
2016-07-02 06:55:55 +08:00
|
|
|
;
|
|
|
|
; EG-LABEL: {{^}}sext_in_reg_v2i1_in_v2i32_other_amount:
|
2016-09-01 05:52:27 +08:00
|
|
|
; EG: MEM_{{.*}} MSKOR [[RES:T[0-9]+]]{{\.[XYZW][XYZW]}}, [[ADDR:T[0-9]+.[XYZW]]]
|
2016-07-02 06:55:55 +08:00
|
|
|
; EG-NOT: BFE
|
|
|
|
; EG: ADD_INT
|
|
|
|
; EG: LSHL
|
2016-09-01 05:52:27 +08:00
|
|
|
; EG: ASHR
|
2016-07-02 06:55:55 +08:00
|
|
|
; EG: LSHL
|
2016-09-01 05:52:27 +08:00
|
|
|
; EG: ASHR
|
2016-07-02 06:55:55 +08:00
|
|
|
; EG: LSHR {{\*?}} [[ADDR]]
|
|
|
|
|
|
|
|
; Works with the align 2 removed
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @sext_in_reg_v2i1_in_v2i32_other_amount(<2 x i32> addrspace(1)* %out, <2 x i32> %a, <2 x i32> %b) nounwind {
|
2016-07-02 06:55:55 +08:00
|
|
|
%c = add <2 x i32> %a, %b
|
|
|
|
%x = shl <2 x i32> %c, <i32 6, i32 6>
|
|
|
|
%y = ashr <2 x i32> %x, <i32 7, i32 7>
|
|
|
|
store <2 x i32> %y, <2 x i32> addrspace(1)* %out, align 2
|
|
|
|
ret void
|
|
|
|
}
|