1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/Transforms/ScalarRepl/union-fp-int.ll

15 lines
411 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | \
; RUN: not grep alloca
; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | \
; RUN: grep {bitcast.*float.*i32}
implementation
2006-12-11 00:52:28 +01:00
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
}