1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s 2 3 ; CHECK: _select00 4 ; CHECK: vmovaps 5 ; CHECK-NEXT: LBB 6 define <8 x i32> @select00(i32 %a, <8 x i32> %b) nounwind { 7 %cmpres = icmp eq i32 %a, 255 8 %selres = select i1 %cmpres, <8 x i32> zeroinitializer, <8 x i32> %b 9 %res = xor <8 x i32> %b, %selres 10 ret <8 x i32> %res 11 } 12 13 ; CHECK: _select01 14 ; CHECK: vmovaps 15 ; CHECK-NEXT: LBB 16 define <4 x i64> @select01(i32 %a, <4 x i64> %b) nounwind { 17 %cmpres = icmp eq i32 %a, 255 18 %selres = select i1 %cmpres, <4 x i64> zeroinitializer, <4 x i64> %b 19 %res = xor <4 x i64> %b, %selres 20 ret <4 x i64> %res 21 } 22 23