mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
afa22e2363
commit
1846783d93
10
test/Transforms/ScalarRepl/union-fp-int.ll
Normal file
10
test/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…
x
Reference in New Issue
Block a user