summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/ConstantFolding/shufflevector.ll
blob: d69c2caecc01f6fd5885df32cf30f335cce0c7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -constprop -S | FileCheck %s

define <vscale x 4 x i32> @shufflevector_scalable_constant() {
; CHECK-LABEL: @shufflevector_scalable_constant(
; CHECK-NEXT:    ret <vscale x 4 x i32> shufflevector (<vscale x 4 x i32> insertelement (<vscale x 4 x i32> undef, i32 1, i32 0), <vscale x 4 x i32> undef, <vscale x 4 x i32> zeroinitializer)
;
  %i = insertelement <vscale x 4 x i32> undef, i32 1, i32 0
  %i2 = shufflevector <vscale x 4 x i32> %i, <vscale x 4 x i32> undef, <vscale x 4 x i32> zeroinitializer
  ret <vscale x 4 x i32> %i2
}
OpenPOWER on IntegriCloud