File: vec_zext.ll

package info (click to toggle)
llvm-toolchain-3.4 1%3A3.4.2-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 253,236 kB
  • ctags: 276,203
  • sloc: cpp: 1,665,580; ansic: 298,647; asm: 206,157; objc: 84,350; python: 73,119; sh: 23,466; perl: 5,679; makefile: 5,542; ml: 5,250; pascal: 2,467; lisp: 1,420; xml: 679; cs: 236; csh: 117
file content (69 lines) | stat: -rw-r--r-- 1,637 bytes parent folder | download | duplicates (7)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
; RUN: llc < %s -march=x86-64
; PR 9267

define<4 x i32> @func_16_32() {
  %F = load <4 x i16>* undef
  %G = zext <4 x i16> %F to <4 x i32>
  %H = load <4 x i16>* undef
  %Y = zext <4 x i16> %H to <4 x i32>
  %T = add <4 x i32> %Y, %G
  store <4 x i32>%T , <4 x i32>* undef
  ret <4 x i32> %T
}

define<4 x i64> @func_16_64() {
  %F = load <4 x i16>* undef
  %G = zext <4 x i16> %F to <4 x i64>
  %H = load <4 x i16>* undef
  %Y = zext <4 x i16> %H to <4 x i64>
  %T = xor <4 x i64> %Y, %G
  store <4 x i64>%T , <4 x i64>* undef
  ret <4 x i64> %T
}

define<4 x i64> @func_32_64() {
  %F = load <4 x i32>* undef
  %G = zext <4 x i32> %F to <4 x i64>
  %H = load <4 x i32>* undef
  %Y = zext <4 x i32> %H to <4 x i64>
  %T = or <4 x i64> %Y, %G
  ret <4 x i64> %T
}

define<4 x i16> @func_8_16() {
  %F = load <4 x i8>* undef
  %G = zext <4 x i8> %F to <4 x i16>
  %H = load <4 x i8>* undef
  %Y = zext <4 x i8> %H to <4 x i16>
  %T = add <4 x i16> %Y, %G
  ret <4 x i16> %T
}

define<4 x i32> @func_8_32() {
  %F = load <4 x i8>* undef
  %G = zext <4 x i8> %F to <4 x i32>
  %H = load <4 x i8>* undef
  %Y = zext <4 x i8> %H to <4 x i32>
  %T = sub <4 x i32> %Y, %G
  ret <4 x i32> %T
}

define<4 x i64> @func_8_64() {
  %F = load <4 x i8>* undef
  %G = zext <4 x i8> %F to <4 x i64>
  %H = load <4 x i8>* undef
  %Y = zext <4 x i8> %H to <4 x i64>
  %T = add <4 x i64> %Y, %G
  ret <4 x i64> %T
}

define<4 x i32> @const_16_32() {
  %G = zext <4 x i16> <i16 0, i16 3, i16 8, i16 7> to <4 x i32>
  ret <4 x i32> %G
}

define<4 x i64> @const_16_64() {
  %G = zext <4 x i16> <i16 0, i16 3, i16 8, i16 7> to <4 x i64>
  ret <4 x i64> %G
}