diff options
author | Chris Lattner <sabre@nondot.org> | 2004-09-23 15:45:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-09-23 15:45:20 +0000 |
commit | 60a11f1970bc97dc80b806db185751fe4629b8af (patch) | |
tree | 910386f491412e958f707d28017138a0a8daba36 /test/Transforms/InstCombine/select.ll | |
parent | 530036b5e89e41787056120666bf0128ea8addd8 (diff) |
load null is undefined behavior, this should fold
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/select.ll')
-rw-r--r-- | test/Transforms/InstCombine/select.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/select.ll b/test/Transforms/InstCombine/select.ll index fe89d93a66..0be572577c 100644 --- a/test/Transforms/InstCombine/select.ll +++ b/test/Transforms/InstCombine/select.ll @@ -136,3 +136,9 @@ int %test15d(int %X) { ;; Alternate code sequence for (X & 16) ? 16 : 0 %t3 = select bool %t2, int 16, int 0 ;; X & 16 ret int %t3 } + +int %test16(bool %C, int* %P) { + %P2 = select bool %C, int* %P, int* null + %V = load int* %P2 + ret int %V +} |