summaryrefslogtreecommitdiffstats
path: root/llvm/test/Other/2004-08-16-PackedGlobalConstant.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Other/2004-08-16-PackedGlobalConstant.ll')
-rw-r--r--llvm/test/Other/2004-08-16-PackedGlobalConstant.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Other/2004-08-16-PackedGlobalConstant.ll b/llvm/test/Other/2004-08-16-PackedGlobalConstant.ll
new file mode 100644
index 00000000000..01b0d5dd405
--- /dev/null
+++ b/llvm/test/Other/2004-08-16-PackedGlobalConstant.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis
+
+%foo = global <2 x int> <int 0, int 1>;
+%bar = uninitialized global <2 x int>;
+
+implementation ; Functions:
+
+void %main()
+{
+ %t0 = load <2 x int>* %foo;
+ store <2 x int> %t0, <2 x int>* %bar
+ ret void
+} \ No newline at end of file
OpenPOWER on IntegriCloud