brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 416ff58 Raw
26 lines · plain
1; RUN: llc < %s -mcpu=corei7 | FileCheck %s2 3target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"4target triple = "x86_64-apple-macosx10.6.6"5 6; Test that the order of operands is correct7; CHECK: select_func8; CHECK: pblendvb        %xmm0, {{LCPI0_[0-9]*}}(%rip), %xmm19; CHECK: ret10 11define void @select_func(<8 x i16> %in) {12entry:13  %c.lobit.i.i.i = ashr <8 x i16> %in, <i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15>14  %and.i56.i.i.i = and <8 x i16> %c.lobit.i.i.i, <i16 25, i16 8, i16 65, i16 25, i16 8, i16 95, i16 15, i16 45>15  %and.i5.i.i.i = bitcast <8 x i16> %and.i56.i.i.i to <2 x i64>16  %neg.i.i.i.i = xor <8 x i16> %c.lobit.i.i.i, <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1>17  %and.i.i.i = and <8 x i16> %neg.i.i.i.i, <i16 45, i16 15, i16 95, i16 8, i16 25, i16 65, i16 8, i16 25>18  %and.i2.i.i.i = bitcast <8 x i16> %and.i.i.i to <2 x i64>19  %or.i.i.i.i = or <2 x i64> %and.i2.i.i.i, %and.i5.i.i.i20  %a37 = bitcast <2 x i64> %or.i.i.i.i to <8 x i16>21  store <8 x i16> %a37, ptr addrspace(1) undef, align 422  ret void23}24 25 26