mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-14 00:14:19 +00:00
d6032177f5
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32596 91177308-0d34-0410-b5e6-96231b3b80d8
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.*int'
|
|
|
|
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
|
|
}
|