mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
4572ce85b0
llvm-svn: 33296
11 lines
376 B
LLVM
11 lines
376 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.*float.*i32'
|
|
|
|
int %test(float %X) {
|
|
%X_addr = alloca float
|
|
store float %X, float* %X_addr
|
|
%X_addr = bitcast float* %X_addr to int*
|
|
%tmp = load int* %X_addr
|
|
ret int %tmp
|
|
}
|