mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
81bb5f99ad
The data layout strings do not have any effect on llc tests and will become misleadingly out of date as we continue to update the canonical data layout, so remove them from the tests. Differential Revision: https://reviews.llvm.org/D105842
17 lines
558 B
LLVM
17 lines
558 B
LLVM
; RUN: llc < %s -mattr=+simd128 -verify-machineinstrs | FileCheck %s --check-prefixes CHECK
|
|
|
|
; Check that shuffles maintain their type when being custom
|
|
; lowered. Regression test for bug 39275.
|
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
; CHECK: i8x16.shuffle
|
|
define <4 x i32> @foo(<4 x i32> %x) {
|
|
%1 = shufflevector <4 x i32> %x, <4 x i32> undef,
|
|
<4 x i32> <i32 2, i32 3, i32 undef, i32 undef>
|
|
%2 = shufflevector <4 x i32> %1, <4 x i32> undef,
|
|
<4 x i32> <i32 1, i32 undef, i32 undef, i32 undef>
|
|
%3 = add <4 x i32> %2, %2
|
|
ret <4 x i32> %3
|
|
}
|