llvm.org GIT mirror llvm / release_35 test / CodeGen / ARM / 2012-08-30-select.ll
release_35

Tree @release_35 (Download .tar.gz)

2012-08-30-select.ll @release_35raw · history · blame

; 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
}