1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

new testcase

llvm-svn: 32417
This commit is contained in:
Chris Lattner 2006-12-10 23:52:28 +00:00
parent fe7dfe16ee
commit a1bb8bb3cc

View File

@ -0,0 +1,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.*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
}