2012-01-24 14:54:13 +01:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
|
|
|
|
|
|
|
|
define <8 x i32> @zext_8i16_to_8i32(<8 x i16> %A) nounwind uwtable readnone ssp {
|
2013-07-19 00:47:09 +02:00
|
|
|
;CHECK-LABEL: zext_8i16_to_8i32:
|
2012-01-24 14:54:13 +01:00
|
|
|
;CHECK: vpunpckhwd
|
2012-02-12 16:05:31 +01:00
|
|
|
;CHECK: ret
|
2012-01-24 14:54:13 +01:00
|
|
|
|
|
|
|
%B = zext <8 x i16> %A to <8 x i32>
|
|
|
|
ret <8 x i32>%B
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i64> @zext_4i32_to_4i64(<4 x i32> %A) nounwind uwtable readnone ssp {
|
2013-07-19 00:47:09 +02:00
|
|
|
;CHECK-LABEL: zext_4i32_to_4i64:
|
2012-01-24 14:54:13 +01:00
|
|
|
;CHECK: vpunpckhdq
|
2012-02-12 16:05:31 +01:00
|
|
|
;CHECK: ret
|
2012-01-24 14:54:13 +01:00
|
|
|
|
|
|
|
%B = zext <4 x i32> %A to <4 x i64>
|
|
|
|
ret <4 x i64>%B
|
|
|
|
}
|
2012-02-12 16:05:31 +01:00
|
|
|
|
|
|
|
define <8 x i32> @zext_8i8_to_8i32(<8 x i8> %z) {
|
2013-07-19 00:47:09 +02:00
|
|
|
;CHECK-LABEL: zext_8i8_to_8i32:
|
2012-02-12 16:05:31 +01:00
|
|
|
;CHECK: vpunpckhwd
|
2012-12-28 06:45:24 +01:00
|
|
|
;CHECK: vpmovzxwd
|
2012-02-12 16:05:31 +01:00
|
|
|
;CHECK: vinsertf128
|
|
|
|
;CHECK: ret
|
|
|
|
%t = zext <8 x i8> %z to <8 x i32>
|
|
|
|
ret <8 x i32> %t
|
|
|
|
}
|