summaryrefslogtreecommitdiff
path: root/test/Bitcode/2006-12-11-Cast-ConstExpr.ll
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2007-07-25 19:47:31 +0000
committerChandler Carruth <chandlerc@gmail.com>2007-07-25 19:47:31 +0000
commit7e9e10bd46dc4fd6d7de3ed1cbe28b3a058736fc (patch)
tree950a0d94e23a7e819935c51d78aff255db4a1d4e /test/Bitcode/2006-12-11-Cast-ConstExpr.ll
parentb8275a3f6f6497889653cb2452d82a46f92b4926 (diff)
downloadllvm-7e9e10bd46dc4fd6d7de3ed1cbe28b3a058736fc.tar.gz
llvm-7e9e10bd46dc4fd6d7de3ed1cbe28b3a058736fc.tar.bz2
llvm-7e9e10bd46dc4fd6d7de3ed1cbe28b3a058736fc.tar.xz
Moving regression test to reflect move in source and headers to Bitcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode/2006-12-11-Cast-ConstExpr.ll')
-rw-r--r--test/Bitcode/2006-12-11-Cast-ConstExpr.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Bitcode/2006-12-11-Cast-ConstExpr.ll b/test/Bitcode/2006-12-11-Cast-ConstExpr.ll
new file mode 100644
index 0000000000..4c768d63cb
--- /dev/null
+++ b/test/Bitcode/2006-12-11-Cast-ConstExpr.ll
@@ -0,0 +1,10 @@
+; This test ensures that we get a bitcast constant expression in and out,
+; not a sitofp constant expression.
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | \
+; RUN: grep {bitcast (}
+
+%G = external global int
+
+float %tryit(int %A) {
+ ret float bitcast( int ptrtoint (int* %G to int) to float)
+}