
Needed manual fixes: 2008-01-06-VoidCast.ll alias.ll @0 type lost pr27703.ll totally confused pr44242.ll phi and update_test_checks pr44245.ll phi and update_test_checks Needed re-running update_test_checks: 2009-01-08-AlignAlloca.ll 2009-02-20-InstCombine-SROA.ll addrspacecast.ll alloca-cast-debuginfo.ll alloca-in-non-alloca-as.ll alloca.ll icmp-gep.ll icmp-custom-dl.ll lifetime-no-null-opt.ll non-integral-pointers.ll pr33689_same_bitwidth.ll pr39908.ll scalable-cast-of-alloc.ll select-cmp-br.ll unpack-fca.ll Converted to generated checks: 2012-6-7-vselect-bitcast.ll
16 lines
519 B
LLVM
16 lines
519 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -S -passes=instcombine < %s | FileCheck %s
|
|
|
|
define void @foo(<16 x i8> %a, <16 x i8> %b, ptr %c) {
|
|
; CHECK-LABEL: @foo(
|
|
; CHECK-NEXT: store <16 x i8> [[B:%.*]], ptr [[C:%.*]], align 4
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%aa = bitcast <16 x i8> %a to <4 x i32>
|
|
%bb = bitcast <16 x i8> %b to <4 x i32>
|
|
%select_v = select <4 x i1> zeroinitializer, <4 x i32> %aa, <4 x i32> %bb
|
|
store <4 x i32> %select_v, ptr %c, align 4
|
|
ret void
|
|
}
|
|
|