[AArch64][NFC] NFC for const vector as Instruction operand (#116790)
[llvm-project.git] / llvm / test / Transforms / InstCombine / pr98435.ll
blob78c8e860bed72bb1eff4d016f0a1a1613b6f9dbf
1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt -S -passes=instcombine < %s 2>&1 | FileCheck %s
4 define <2 x i1> @pr98435(<2 x i1> %val) {
5 ; CHECK-LABEL: define <2 x i1> @pr98435(
6 ; CHECK-SAME: <2 x i1> [[VAL:%.*]]) {
7 ; CHECK-NEXT:    [[VAL1:%.*]] = select <2 x i1> <i1 undef, i1 true>, <2 x i1> splat (i1 true), <2 x i1> [[VAL]]
8 ; CHECK-NEXT:    ret <2 x i1> [[VAL1]]
10   %val1 = select <2 x i1> <i1 undef, i1 true>, <2 x i1> <i1 true, i1 true>, <2 x i1> %val
11   ret <2 x i1> %val1