mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:40:38 +00:00
8819f1fe36
In constant folding stage, "TRUNC" can't handle vector data type. llvm-svn: 216149
10 lines
214 B
LLVM
10 lines
214 B
LLVM
; RUN: opt -constprop < %s
|
|
|
|
; Make sure we don't crash on this one
|
|
|
|
define <8 x i8> @test_truc_vec() {
|
|
%x = bitcast <2 x i64> <i64 1, i64 2> to <8 x i16>
|
|
%y = trunc <8 x i16> %x to <8 x i8>
|
|
ret <8 x i8> %y
|
|
}
|