2015-01-06 18:00:21 +00:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
2015-01-27 17:27:15 +00:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
2014-07-15 21:44:37 +00:00
|
|
|
|
|
|
|
; FIXME: This should go in existing select.ll test, except the current testcase there is broken on SI
|
|
|
|
|
2014-10-01 17:15:17 +00:00
|
|
|
; FUNC-LABEL: {{^}}select_i1:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: v_cndmask_b32
|
|
|
|
; SI-NOT: v_cndmask_b32
|
2014-07-15 21:44:37 +00:00
|
|
|
define void @select_i1(i1 addrspace(1)* %out, i32 %cond, i1 %a, i1 %b) nounwind {
|
|
|
|
%cmp = icmp ugt i32 %cond, 5
|
|
|
|
%sel = select i1 %cmp, i1 %a, i1 %b
|
|
|
|
store i1 %sel, i1 addrspace(1)* %out, align 4
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|