xref: /aosp_15_r20/external/llvm/test/CodeGen/Hexagon/vect/vect-zeroextend.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=hexagon < %s
2*9880d681SAndroid Build Coastguard Worker; Used to fail with "Cannot select: 0x16cb2d0: v4i16 = zero_extend"
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; ModuleID = 'bugpoint-reduced-simplified.bc'
5*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-a0:0-n32"
6*9880d681SAndroid Build Coastguard Workertarget triple = "hexagon-unknown-linux-gnu"
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine void @foo() nounwind {
9*9880d681SAndroid Build Coastguard Workerentry:
10*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %for.cond30.preheader.lr.ph, label %for.end425
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerfor.cond30.preheader.lr.ph:                       ; preds = %entry
13*9880d681SAndroid Build Coastguard Worker  br label %for.cond37.preheader
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Workerfor.cond37.preheader:                             ; preds = %for.cond37.preheader, %for.cond30.preheader.lr.ph
16*9880d681SAndroid Build Coastguard Worker  %_p_vec_full = load <3 x i8>, <3 x i8>* undef, align 8
17*9880d681SAndroid Build Coastguard Worker  %0 = zext <3 x i8> %_p_vec_full to <3 x i16>
18*9880d681SAndroid Build Coastguard Worker  store <3 x i16> %0, <3 x i16>* undef, align 8
19*9880d681SAndroid Build Coastguard Worker  br label %for.cond37.preheader
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workerfor.end425:                                       ; preds = %entry
22*9880d681SAndroid Build Coastguard Worker  ret void
23*9880d681SAndroid Build Coastguard Worker}
24