mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
d2f27ead2d
Add more folding patterns to constant expressions of vector selects and vector bitcasts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125393 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
278 B
LLVM
15 lines
278 B
LLVM
; RUN: opt < %s -instcombine -S | not grep bitcast
|
|
|
|
define <4 x i32> @a(<1 x i64> %y) {
|
|
%c = bitcast <2 x i64> <i64 0, i64 0> to <4 x i32>
|
|
ret <4 x i32> %c
|
|
}
|
|
|
|
define <4 x i32> @b(<1 x i64> %y) {
|
|
%c = bitcast <2 x i64> <i64 -1, i64 -1> to <4 x i32>
|
|
ret <4 x i32> %c
|
|
}
|
|
|
|
|
|
|