summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/constexpr.ll
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-07-15 18:18:45 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-07-15 18:18:45 +0000
commit417ad4f124971005831925e8a8f89a345646ac0c (patch)
tree9c1db17442a0ad9545a0c5fb96d6e66d43827029 /llvm/test/Feature/constexpr.ll
parent8445b41ddd1f6e064fb4a98bc9d3df023b254c70 (diff)
downloadbcm5719-llvm-417ad4f124971005831925e8a8f89a345646ac0c.tar.gz
bcm5719-llvm-417ad4f124971005831925e8a8f89a345646ac0c.zip
Added duplicate constant expressions to test uniqueness support.
llvm-svn: 2908
Diffstat (limited to 'llvm/test/Feature/constexpr.ll')
-rw-r--r--llvm/test/Feature/constexpr.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Feature/constexpr.ll b/llvm/test/Feature/constexpr.ll
index aef668e1457..7fbb5aa244d 100644
--- a/llvm/test/Feature/constexpr.ll
+++ b/llvm/test/Feature/constexpr.ll
@@ -68,5 +68,19 @@ global float 0.0
;; TODO: Test constant expressions for unary and binary operators
;;---------------------------------------------------------
+
+;;---------------------------------------------------
+;; Test duplicate constant expressions
+;;---------------------------------------------------
+
+%t4 = global int** cast uint** %t3
+
+%char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8)
+
+%S3fld3 = global float* getelementptr (%SAType** %S3, uint 0, uint 0, ubyte 1, ubyte 0, uint 0)
+
+
+;;---------------------------------------------------
+
implementation
OpenPOWER on IntegriCloud