File: vec_shuffle-18.ll

package info (click to toggle)
llvm-toolchain-3.5 1%3A3.5-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 282,028 kB
  • ctags: 310,872
  • sloc: cpp: 1,883,926; ansic: 310,731; objc: 86,612; python: 79,565; asm: 65,844; sh: 9,829; makefile: 6,057; perl: 5,589; ml: 5,254; pascal: 3,285; lisp: 1,640; xml: 686; cs: 239; csh: 117
file content (25 lines) | stat: -rw-r--r-- 1,567 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
; RUN: llc < %s -march=x86 -mattr=+sse2 -mtriple=i686-apple-darwin8.8.0 | grep mov | count 7

	%struct.vector4_t = type { <4 x float> }

define void @swizzle(i8* %a, %struct.vector4_t* %b, %struct.vector4_t* %c) nounwind  {
entry:
	%tmp9 = getelementptr %struct.vector4_t* %b, i32 0, i32 0		; <<4 x float>*> [#uses=2]
	%tmp10 = load <4 x float>* %tmp9, align 16		; <<4 x float>> [#uses=1]
	%tmp14 = bitcast i8* %a to double*		; <double*> [#uses=1]
	%tmp15 = load double* %tmp14		; <double> [#uses=1]
	%tmp16 = insertelement <2 x double> undef, double %tmp15, i32 0		; <<2 x double>> [#uses=1]
	%tmp18 = bitcast <2 x double> %tmp16 to <4 x float>		; <<4 x float>> [#uses=1]
	%tmp19 = shufflevector <4 x float> %tmp10, <4 x float> %tmp18, <4 x i32> < i32 4, i32 5, i32 2, i32 3 >		; <<4 x float>> [#uses=1]
	store <4 x float> %tmp19, <4 x float>* %tmp9, align 16
	%tmp28 = getelementptr %struct.vector4_t* %c, i32 0, i32 0		; <<4 x float>*> [#uses=2]
	%tmp29 = load <4 x float>* %tmp28, align 16		; <<4 x float>> [#uses=1]
	%tmp26 = getelementptr i8* %a, i32 8		; <i8*> [#uses=1]
	%tmp33 = bitcast i8* %tmp26 to double*		; <double*> [#uses=1]
	%tmp34 = load double* %tmp33		; <double> [#uses=1]
	%tmp35 = insertelement <2 x double> undef, double %tmp34, i32 0		; <<2 x double>> [#uses=1]
	%tmp37 = bitcast <2 x double> %tmp35 to <4 x float>		; <<4 x float>> [#uses=1]
	%tmp38 = shufflevector <4 x float> %tmp29, <4 x float> %tmp37, <4 x i32> < i32 4, i32 5, i32 2, i32 3 >		; <<4 x float>> [#uses=1]
	store <4 x float> %tmp38, <4 x float>* %tmp28, align 16
	ret void
}