You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
This commit is contained in:
parent
37fbf886a3
commit
e19d552987
31
external/llvm/test/Transforms/InstSimplify/insertelement.ll
vendored
Normal file
31
external/llvm/test/Transforms/InstSimplify/insertelement.ll
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
; RUN: opt -S -instsimplify < %s | FileCheck %s
|
||||
|
||||
define <4 x i32> @test1(<4 x i32> %A) {
|
||||
%I = insertelement <4 x i32> %A, i32 5, i64 4294967296
|
||||
; CHECK: ret <4 x i32> undef
|
||||
ret <4 x i32> %I
|
||||
}
|
||||
|
||||
define <4 x i32> @test2(<4 x i32> %A) {
|
||||
%I = insertelement <4 x i32> %A, i32 5, i64 4
|
||||
; CHECK: ret <4 x i32> undef
|
||||
ret <4 x i32> %I
|
||||
}
|
||||
|
||||
define <4 x i32> @test3(<4 x i32> %A) {
|
||||
%I = insertelement <4 x i32> %A, i32 5, i64 1
|
||||
; CHECK: ret <4 x i32> %I
|
||||
ret <4 x i32> %I
|
||||
}
|
||||
|
||||
define <4 x i32> @test4(<4 x i32> %A) {
|
||||
%I = insertelement <4 x i32> %A, i32 5, i128 100
|
||||
; CHECK: ret <4 x i32> undef
|
||||
ret <4 x i32> %I
|
||||
}
|
||||
|
||||
define <4 x i32> @test5(<4 x i32> %A) {
|
||||
%I = insertelement <4 x i32> %A, i32 5, i64 undef
|
||||
; CHECK: ret <4 x i32> undef
|
||||
ret <4 x i32> %I
|
||||
}
|
Reference in New Issue
Block a user