mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
new testcase
llvm-svn: 32421
This commit is contained in:
parent
e31f99af99
commit
15956c6316
12
test/Regression/Transforms/ScalarRepl/union-packed.ll
Normal file
12
test/Regression/Transforms/ScalarRepl/union-packed.ll
Normal file
@ -0,0 +1,12 @@
|
||||
; 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user