1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-02-01 02:33:44 +00:00
Nadav Rotem d239e5af64 Fix test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125460 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-13 16:13:16 +00:00

31 lines
531 B
LLVM

; RUN: opt < %s -instcombine -S | FileCheck %s
; CHECK: @a
; CHECK-NOT: bitcast
; CHECK: ret
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
}
; CHECK: @b
; CHECK-NOT: bitcast
; CHECK: ret
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
}
; CHECK: @foo
; CHECK: bitcast
; from MultiSource/Benchmarks/Bullet
define <2 x float> @foo() {
%cast = bitcast i64 -1 to <2 x float>
ret <2 x float> %cast
}