2010-08-26 13:24:29 +08:00
|
|
|
; Tests for SSE1 and below, without SSE2+.
|
2010-08-26 13:25:05 +08:00
|
|
|
; RUN: llc < %s -march=x86 -mcpu=pentium3 -O3 | FileCheck %s
|
|
|
|
; RUN: llc < %s -march=x86-64 -mcpu=pentium3 -O3 | FileCheck %s
|
2010-08-26 13:24:29 +08:00
|
|
|
|
|
|
|
define <8 x i16> @test1(<8 x i32> %a) nounwind {
|
|
|
|
; CHECK: test1
|
|
|
|
ret <8 x i16> zeroinitializer
|
|
|
|
}
|
2010-08-26 13:51:22 +08:00
|
|
|
|
|
|
|
define <8 x i16> @test2(<8 x i32> %a) nounwind {
|
|
|
|
; CHECK: test2
|
|
|
|
%c = trunc <8 x i32> %a to <8 x i16> ; <<8 x i16>> [#uses=1]
|
|
|
|
ret <8 x i16> %c
|
|
|
|
}
|
2010-08-26 14:57:07 +08:00
|
|
|
|
|
|
|
; PR7993
|
|
|
|
;define <4 x i32> @test3(<4 x i16> %a) nounwind {
|
|
|
|
; %c = sext <4 x i16> %a to <4 x i32> ; <<4 x i32>> [#uses=1]
|
|
|
|
; ret <4 x i32> %c
|
|
|
|
;}
|