| Author: | j |
|---|---|
| Mode: | text |
| Date: | Sat, 3 Mar 2012 20:12:48 |
define void @foo(<16 x i8> %x, i64* %y) nounwind {
%1 = bitcast <16 x i8> %x to <2 x i64>
%2 = extractelement <2 x i64> %1, i32 0
store i64 %2, i64* %y
ret void
}
# llc -mattr=sse2 -mtriple i386--darwin <foo.ll
_foo: ## @foo
## BB#0:
movl 4(%esp), %eax
pextrd $1, %xmm0, 4(%eax)
movd %xmm0, (%eax)
ret