diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-11 23:19:53 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-11 23:19:53 +0000 |
commit | 1565491af254368a2b016b5886cd6f5c46d36993 (patch) | |
tree | fbc2102b9c464e733317ff685f6773fb55bcac05 | |
parent | 442b9a69811b68bc169b3eb9305fca7adfb325eb (diff) |
Test case for ensuring correct reading back of cast constant expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32449 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Bytecode/2006-12-11-Cast-ConstExpr.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Bytecode/2006-12-11-Cast-ConstExpr.ll b/test/Bytecode/2006-12-11-Cast-ConstExpr.ll new file mode 100644 index 0000000000..6bd1603b0a --- /dev/null +++ b/test/Bytecode/2006-12-11-Cast-ConstExpr.ll @@ -0,0 +1,8 @@ +; This test ensures that we get a bitcast constant expression in and out, +; not a sitofp constant expression. +; RUN: llvm-as < %s | llvm-dis | grep 'bitcast (' +%G = external global int + +float %tryit(int %A) { + ret float bitcast( int ptrtoint (int* %G to int) to float) +} |