mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 16:02:52 +01:00
7c620b0d5f
- Find a legal vector type before casting and extracting element from it. - As the new vector type may have more than 2 elements, build the final hi/lo pair by BFS pairing them from bottom to top. llvm-svn: 163830
12 lines
269 B
LLVM
12 lines
269 B
LLVM
; RUN: llc -mtriple=x86_64-unknown-unknown -mcpu=core-avx-i < %s | FileCheck %s --check-prefix CHECK
|
|
|
|
define i256 @foo(<8 x i32> %a) {
|
|
%r = bitcast <8 x i32> %a to i256
|
|
ret i256 %r
|
|
; CHECK: foo
|
|
; CHECK: vextractf128
|
|
; CHECK: vpextrq
|
|
; CHECK: vpextrq
|
|
; CHECK: ret
|
|
}
|