blob: 681636b07b4207c1f5c93b329b31e1319a57827f (
plain)
1
2
3
4
5
6
7
8
9
10
|
; 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
}
|