17 lines · plain
1; RUN: llc < %s -mattr=+simd128 -verify-machineinstrs | FileCheck %s --check-prefixes CHECK2 3; Check that shuffles maintain their type when being custom4; lowered. Regression test for bug 39275.5 6target triple = "wasm32-unknown-unknown"7 8; CHECK: i8x16.shuffle9define <4 x i32> @foo(<4 x i32> %x) {10 %1 = shufflevector <4 x i32> %x, <4 x i32> undef,11 <4 x i32> <i32 2, i32 3, i32 undef, i32 undef>12 %2 = shufflevector <4 x i32> %1, <4 x i32> undef,13 <4 x i32> <i32 1, i32 undef, i32 undef, i32 undef>14 %3 = add <4 x i32> %2, %215 ret <4 x i32> %316}17