1 ; RUN: llc < %s -mattr=+simd128 -verify-machineinstrs -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals
3 ; Regression test for a crash on wasm64 when trying to lower extract_vector_elt
4 ; with a 64 bit constant:
6 ; t19: i64 = extract_vector_elt t18, Constant:i64<0>
8 target triple = "wasm64-unknown-unknown"
11 store <4 x i32> zeroinitializer, ptr poison, align 16
12 %1 = load <4 x i32>, ptr poison, align 16
13 %2 = extractelement <4 x i32> %1, i32 0
14 %3 = insertelement <2 x i32> undef, i32 %2, i32 0
15 %4 = insertelement <2 x i32> %3, i32 poison, i32 1
16 store <2 x i32> %4, ptr poison, align 8