1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-02 00:42:52 +01:00
llvm-mirror/test/CodeGen/PowerPC/2008-07-10-SplatMiscompile.ll
Chris Lattner 5f3c587276 Fix an altivec constant miscompilation that Duncan found through
his work on legalizetypes.

llvm-svn: 53410
2008-07-10 16:33:38 +00:00

11 lines
355 B
LLVM

; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vadduhm
; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vsubuhm
define <4 x i32> @test() nounwind {
ret <4 x i32> < i32 4293066722, i32 4293066722, i32 4293066722, i32 4293066722>
}
define <4 x i32> @test2() nounwind {
ret <4 x i32> < i32 1114129, i32 1114129, i32 1114129, i32 1114129>
}