mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Arrays and vectors with different numbers of elements are not equivalent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
18
test/Transforms/MergeFunc/vectors-and-arrays.ll
Normal file
18
test/Transforms/MergeFunc/vectors-and-arrays.ll
Normal file
@@ -0,0 +1,18 @@
|
||||
; RUN: opt -mergefunc < %s -disable-output -stats | not grep merged
|
||||
; This used to crash with an assert.
|
||||
|
||||
define <2 x i8> @v1(<2 x i8> %x) {
|
||||
ret <2 x i8> %x
|
||||
}
|
||||
|
||||
define <4 x i8> @v2(<4 x i8> %x) {
|
||||
ret <4 x i8> %x
|
||||
}
|
||||
|
||||
define [2 x i8] @a1([2 x i8] %x) {
|
||||
ret [2 x i8] %x
|
||||
}
|
||||
|
||||
define [4 x i8] @a2([4 x i8] %x) {
|
||||
ret [4 x i8] %x
|
||||
}
|
Reference in New Issue
Block a user