mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-18 01:17:46 +00:00
d6032177f5
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32596 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
442 B
LLVM
13 lines
442 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | not grep alloca &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep 'bitcast'
|
|
|
|
target endian = little
|
|
|
|
<4 x int> %test(<4 x float> %X) {
|
|
%X_addr = alloca <4 x float>
|
|
store <4 x float> %X, <4 x float>* %X_addr
|
|
%X_addr = bitcast <4 x float>* %X_addr to <4 x int>*
|
|
%tmp = load <4 x int>* %X_addr
|
|
ret <4 x int> %tmp
|
|
}
|