[llvm] r321573 - Add another test case for r321489
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 29 20:10:48 PST 2017
Author: reames
Date: Fri Dec 29 20:10:48 2017
New Revision: 321573
URL: http://llvm.org/viewvc/llvm-project?rev=321573&view=rev
Log:
Add another test case for r321489
Went to reduce another fuzzer failure to find it's already been fixed, but the test case is slightly different so it's worth adding anyways.
Reduced from oss-fuzz #4768 test case
Modified:
llvm/trunk/test/Transforms/InstCombine/extractelement.ll
Modified: llvm/trunk/test/Transforms/InstCombine/extractelement.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/extractelement.ll?rev=321573&r1=321572&r2=321573&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/extractelement.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/extractelement.ll Fri Dec 29 20:10:48 2017
@@ -9,3 +9,12 @@ define i32 @extractelement_out_of_range(
%E1 = extractelement <2 x i32> %x, i8 16
ret i32 %E1
}
+
+define i32 @extractelement_type_out_of_range(<2 x i32> %x) {
+; CHECK-LABEL: @extractelement_type_out_of_range(
+; CHECK-NEXT: [[E1:%.*]] = extractelement <2 x i32> [[X:%.*]], i128 0
+; CHECK-NEXT: ret i32 [[E1]]
+;
+ %E1 = extractelement <2 x i32> %x, i128 0
+ ret i32 %E1
+}
More information about the llvm-commits
mailing list