File: vec_splat-2.ll

package info (click to toggle)
llvm 2.2-12
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 38,648 kB
  • ctags: 28,258
  • sloc: cpp: 215,479; sh: 12,132; ansic: 10,002; yacc: 5,525; perl: 2,352; ml: 1,580; makefile: 956; pascal: 718; lex: 602; exp: 320; ada: 193; lisp: 160; csh: 116; objc: 59; python: 59; tcl: 20
file content (26 lines) | stat: -rw-r--r-- 1,383 bytes parent folder | download
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
26
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep pshufd | count 1

void %test(<2 x long>* %P, sbyte %x) {
	%tmp = insertelement <16 x sbyte> zeroinitializer, sbyte %x, uint 0		; <<16 x sbyte>> [#uses=1]
	%tmp36 = insertelement <16 x sbyte> %tmp, sbyte %x, uint 1
	%tmp38 = insertelement <16 x sbyte> %tmp36, sbyte %x, uint 2
	%tmp40 = insertelement <16 x sbyte> %tmp38, sbyte %x, uint 3
	%tmp42 = insertelement <16 x sbyte> %tmp40, sbyte %x, uint 4
	%tmp44 = insertelement <16 x sbyte> %tmp42, sbyte %x, uint 5
	%tmp46 = insertelement <16 x sbyte> %tmp44, sbyte %x, uint 6
	%tmp48 = insertelement <16 x sbyte> %tmp46, sbyte %x, uint 7
	%tmp50 = insertelement <16 x sbyte> %tmp48, sbyte %x, uint 8
	%tmp52 = insertelement <16 x sbyte> %tmp50, sbyte %x, uint 9
	%tmp54 = insertelement <16 x sbyte> %tmp52, sbyte %x, uint 10
	%tmp56 = insertelement <16 x sbyte> %tmp54, sbyte %x, uint 11
	%tmp58 = insertelement <16 x sbyte> %tmp56, sbyte %x, uint 12
	%tmp60 = insertelement <16 x sbyte> %tmp58, sbyte %x, uint 13
	%tmp62 = insertelement <16 x sbyte> %tmp60, sbyte %x, uint 14
	%tmp64 = insertelement <16 x sbyte> %tmp62, sbyte %x, uint 15
	%tmp68 = load <2 x long>* %P
	%tmp71 = cast <2 x long> %tmp68 to <16 x sbyte>
	%tmp73 = add <16 x sbyte> %tmp71, %tmp64
	%tmp73 = cast <16 x sbyte> %tmp73 to <2 x long>
	store <2 x long> %tmp73, <2 x long>* %P
	ret void
}