mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
3ac25d30ac
The tests, test/Transforms/InstCombine/AArch64/sve-*, have been shown to not be AArch64 specific. These tests have been renamed and moved to reflect this. Differential Revision: https://reviews.llvm.org/D99253
14 lines
557 B
LLVM
14 lines
557 B
LLVM
; RUN: opt -instcombine -S < %s | FileCheck %s
|
|
|
|
; We shouldn't fold bitcast(insert <vscale x 1 x iX> .., iX %val, i32 0)
|
|
; into bitcast(iX %val) for scalable vectors.
|
|
define <vscale x 2 x i8> @bitcast_of_insert_i8_i16(i16 %val) #0 {
|
|
; CHECK-LABEL: @bitcast_of_insert_i8_i16(
|
|
; CHECK-NOT: bitcast i16 %val to <vscale x 2 x i8>
|
|
; CHECK: bitcast <vscale x 1 x i16> %op2 to <vscale x 2 x i8>
|
|
entry:
|
|
%op2 = insertelement <vscale x 1 x i16> undef, i16 %val, i32 0
|
|
%0 = bitcast <vscale x 1 x i16> %op2 to <vscale x 2 x i8>
|
|
ret <vscale x 2 x i8> %0
|
|
}
|