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:
parent
fe7dfe16ee
commit
a1bb8bb3cc
10
test/Regression/Transforms/ScalarRepl/union-fp-int.ll
Normal file
10
test/Regression/Transforms/ScalarRepl/union-fp-int.ll
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user