diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-10 23:52:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-10 23:52:28 +0000 |
commit | 1846783d93d4a0e05796e3ee180fc74f5ac4683c (patch) | |
tree | 1a44faa9bb4e0d1c5c9a3e720503eaf5af44eb33 /test/Transforms/ScalarRepl/union-fp-int.ll | |
parent | afa22e2363c5f93d7f2fad6d06c2e3d1f9702d65 (diff) | |
download | llvm-1846783d93d4a0e05796e3ee180fc74f5ac4683c.tar.gz llvm-1846783d93d4a0e05796e3ee180fc74f5ac4683c.tar.bz2 llvm-1846783d93d4a0e05796e3ee180fc74f5ac4683c.tar.xz |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ScalarRepl/union-fp-int.ll')
-rw-r--r-- | test/Transforms/ScalarRepl/union-fp-int.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/ScalarRepl/union-fp-int.ll b/test/Transforms/ScalarRepl/union-fp-int.ll new file mode 100644 index 0000000000..9c0e23e8a6 --- /dev/null +++ b/test/Transforms/ScalarRepl/union-fp-int.ll @@ -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 +} |