summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll')
-rw-r--r--test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll b/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll
new file mode 100644
index 0000000..f8fe0d2
--- /dev/null
+++ b/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -march=xcore
+%struct.st = type <{ i8, i32, i8, i32, i8, i32 }>
+
+@x = external global %struct.st, align 4
+
+define i32 @test_entry() nounwind {
+entry:
+ %0 = load i32* getelementptr inbounds (%struct.st* @x, i32 0, i32 3), align 2
+ ret i32 %0
+}
OpenPOWER on IntegriCloud