We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3654183 commit 6fb2a60Copy full SHA for 6fb2a60
llvm/test/Transforms/VectorCombine/X86/pr115575.ll
@@ -0,0 +1,14 @@
1
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2
+; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- | FileCheck %s
3
+
4
+define <2 x i8> @PR115575(i8 %x) {
5
+; CHECK-LABEL: define <2 x i8> @PR115575(
6
+; CHECK-SAME: i8 [[X:%.*]]) {
7
+; CHECK-NEXT: [[BO_SCALAR:%.*]] = sdiv i8 [[X]], poison
8
+; CHECK-NEXT: [[BO:%.*]] = insertelement <2 x i8> poison, i8 [[BO_SCALAR]], i64 3
9
+; CHECK-NEXT: ret <2 x i8> [[BO]]
10
+;
11
+ %ins = insertelement <2 x i8> poison, i8 %x, i32 3
12
+ %bo = sdiv <2 x i8> %ins, <i8 5, i8 2>
13
+ ret <2 x i8> %bo
14
+}
0 commit comments