mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-16 01:17:51 +00:00
18c3e6524d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32545 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
388 B
LLVM
13 lines
388 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.*int'
|
|
|
|
; XFAIL: *
|
|
|
|
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
|
|
}
|