diff options
author | Philip Reames <listmail@philipreames.com> | 2017-12-30 04:10:48 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2017-12-30 04:10:48 +0000 |
commit | e66588b3174ab8b5a010b58e046c36b3f3a5abdc (patch) | |
tree | 4fa422e99f66a13d719ea76c43a2581889345bbb /test | |
parent | bed272c473cff1a6d2bf72361cda36810df2877f (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/extractelement.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/extractelement.ll b/test/Transforms/InstCombine/extractelement.ll index 66fbd25947d..242f0623c2c 100644 --- a/test/Transforms/InstCombine/extractelement.ll +++ b/test/Transforms/InstCombine/extractelement.ll @@ -9,3 +9,12 @@ define i32 @extractelement_out_of_range(<2 x i32> %x) { %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 +} |