blob: 97b732beb4d79c56f7a02308064b3ce5ac50b57c [file] [log] [blame]
; RUN: llc < %s -mtriple=thumbv7-apple-ios | FileCheck %s
; rdar://12201387
;CHECK-LABEL: select_s_v_v:
;CHECK: vmov
;CHECK-NEXT: vmov
;CHECK: vmov.i32
;CHECK: bx
define <16 x i8> @select_s_v_v(<16 x i8> %vec, i32 %avail) {
entry:
%and = and i32 %avail, 1
%tobool = icmp eq i32 %and, 0
%ret = select i1 %tobool, <16 x i8> %vec, <16 x i8> zeroinitializer
ret <16 x i8> %ret
}