Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/2009-07-09-ExtractBoolFromVector.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 803732b1fca8 |
line wrap: on
line source
; RUN: llc < %s -march=x86 ; PR3037 define void @entry(<4 x i8>* %dest) { %1 = xor <4 x i1> zeroinitializer, < i1 true, i1 true, i1 true, i1 true > %2 = extractelement <4 x i1> %1, i32 3 %3 = zext i1 %2 to i8 %4 = insertelement <4 x i8> zeroinitializer, i8 %3, i32 3 store <4 x i8> %4, <4 x i8>* %dest, align 1 ret void }