19 lines · plain
1; RUN: llc < %s -mtriple aarch64-unknown-unknown -asm-verbose=false | FileCheck %s2 3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"4 5; Test the (concat_vectors (bitcast (trunc (scalar))), undef..) pattern.6 7define <8 x i8> @test_concat_from_truncated_scalar(i32 %x) #0 {8entry:9; CHECK-LABEL: test_concat_from_truncated_scalar:10; CHECK-NEXT: fmov s0, w011; CHECK-NEXT: ret12 %t = trunc i32 %x to i1613 %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>15 ret <8 x i8> %116}17 18attributes #0 = { nounwind }19