diff options
Diffstat (limited to 'test/CodeGen/Hexagon/vect/vect-anyextend.ll')
-rw-r--r-- | test/CodeGen/Hexagon/vect/vect-anyextend.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/Hexagon/vect/vect-anyextend.ll b/test/CodeGen/Hexagon/vect/vect-anyextend.ll new file mode 100644 index 0000000..fe5fe84 --- /dev/null +++ b/test/CodeGen/Hexagon/vect/vect-anyextend.ll @@ -0,0 +1,15 @@ +; RUN: llc -march=hexagon < %s +; Used to fail with "Cannot select: 0x17300f0: v2i32 = any_extend" + +; ModuleID = 'bugpoint-reduced-simplified.bc' +target 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" +target triple = "hexagon-unknown-linux-gnu" + +define void @foo() nounwind { +entry: + %_p_vec_full48 = load <4 x i8>, <4 x i8>* undef, align 8 + %0 = zext <4 x i8> %_p_vec_full48 to <4 x i32> + store <4 x i32> %0, <4 x i32>* undef, align 8 + unreachable +} |