File: 2009-07-02-MaskedIntVector.ll

package info (click to toggle)
llvm 2.6-9.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 57,604 kB
  • ctags: 44,336
  • sloc: cpp: 344,766; sh: 12,407; ansic: 10,617; ada: 3,070; ml: 2,505; perl: 2,496; makefile: 1,426; pascal: 1,163; exp: 389; asm: 307; python: 298; objc: 260; lisp: 182; csh: 117; xml: 38; f90: 36; tcl: 20
file content (15 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-as < %s | opt -instcombine | llvm-dis
; PR4495

define i32 @test(i64 %test) {
entry:
	%0 = bitcast <4 x i32> undef to <16 x i8>		; <<16 x i8>> [#uses=1]
	%t12 = shufflevector <16 x i8> %0, <16 x i8> zeroinitializer, <16 x i32> <i32 0, i32 16, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>		; <<16 x i8>> [#uses=1]
	%t11 = bitcast <16 x i8> %t12 to <2 x i64>		; <<2 x i64>> [#uses=1]
	%t9 = extractelement <2 x i64> %t11, i32 0		; <i64> [#uses=1]
	%t10 = bitcast i64 %t9 to <2 x i32>		; <<2 x i32>> [#uses=1]
	%t7 = bitcast i64 %test to <2 x i32>		; <<2 x i32>> [#uses=1]
	%t6 = xor <2 x i32> %t10, %t7		; <<2 x i32>> [#uses=1]
	%t1 = extractelement <2 x i32> %t6, i32 0		; <i32> [#uses=1]
	ret i32 %t1
}