diff options
author | Duncan Sands <baldrick@free.fr> | 2008-08-13 20:20:35 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-08-13 20:20:35 +0000 |
commit | abe3913a81e62f6471e23e42d76a507a4cdb3d60 (patch) | |
tree | e196776a9c44683654f382a48dc44d5a61854e1d /test/FrontendAda | |
parent | b75dead2c1c85c970e5ed73096f76a0c00a7f1d5 (diff) | |
download | external_llvm-abe3913a81e62f6471e23e42d76a507a4cdb3d60.zip external_llvm-abe3913a81e62f6471e23e42d76a507a4cdb3d60.tar.gz external_llvm-abe3913a81e62f6471e23e42d76a507a4cdb3d60.tar.bz2 |
Teach constant folding that an inttoptr of a
ptrtoint can be turned into a bitcast if the
integer is at least as wide as a pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendAda')
-rw-r--r-- | test/FrontendAda/constant_fold.ads | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/FrontendAda/constant_fold.ads b/test/FrontendAda/constant_fold.ads new file mode 100644 index 0000000..6223e7c --- /dev/null +++ b/test/FrontendAda/constant_fold.ads @@ -0,0 +1,4 @@ +-- RUN: %llvmgcc -S -emit-llvm %s -o - | not grep ptrtoint +package Constant_Fold is + Error : exception; +end; |