summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/2012-08-30-select.ll
blob: e78bbdea01f2c09e720ebe29c8b53da933fad061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc < %s -mtriple=thumbv7-apple-ios | FileCheck %s
; rdar://12201387

;CHECK-LABEL: select_s_v_v:
;CHECK: it  ne
;CHECK-NEXT: vmovne.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
}