1 ; RUN: llc < %s -mtriple aarch64-unknown-unknown -asm-verbose=false | FileCheck %s
3 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
5 ; Test the (concat_vectors (bitcast (trunc (scalar))), undef..) pattern.
7 define <8 x i8> @test_concat_from_truncated_scalar(i32 %x) #0 {
9 ; CHECK-LABEL: test_concat_from_truncated_scalar:
10 ; CHECK-NEXT: fmov s0, w0
12 %t = trunc i32 %x to i16
13 %0 = bitcast i16 %t to <2 x i8>
14 %1 = shufflevector <2 x i8> %0, <2 x i8> undef, <8 x i32> <i32 0, i32 1, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2>
18 attributes #0 = { nounwind }