diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-07-29 23:15:49 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-07-29 23:15:49 +0000 |
commit | 508f5b031625f496b6e8543ca7812a6d3ef2923d (patch) | |
tree | 8ea2b62aafd74ba98533949c15d048bf8e9a3514 /llvm/test/Bitcode | |
parent | 1d501e8f46ccea5efa8bdb2833f6b4fc2f48f047 (diff) | |
download | bcm5719-llvm-508f5b031625f496b6e8543ca7812a6d3ef2923d.tar.gz bcm5719-llvm-508f5b031625f496b6e8543ca7812a6d3ef2923d.zip |
UseListOrder: Additional test coverage for r214242
r214242 was subtle enough it really deserves a targeted test with
comments. This adds some global variables that trigger the relevant
code path. Sorry this wasn't committed with the fix.
llvm-svn: 214243
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/use-list-order.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/use-list-order.ll b/llvm/test/Bitcode/use-list-order.ll index ac7307b2711..33cc13edb05 100644 --- a/llvm/test/Bitcode/use-list-order.ll +++ b/llvm/test/Bitcode/use-list-order.ll @@ -3,6 +3,20 @@ @a = global [4 x i1] [i1 0, i1 1, i1 0, i1 1] @b = alias i1* getelementptr ([4 x i1]* @a, i64 0, i64 2) +; Check use-list order of constants used by globals. +@glob1 = global i5 7 +@glob2 = global i5 7 +@glob3 = global i5 7 + +; Check use-list order between variables and aliases. +@target = global i3 zeroinitializer +@alias1 = alias i3* @target +@alias2 = alias i3* @target +@alias3 = alias i3* @target +@var1 = global i3* @target +@var2 = global i3* @target +@var3 = global i3* @target + define i64 @f(i64 %f) { entry: %sum = add i64 %f, 0 |