aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/badFoldGEP.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Generic/badFoldGEP.ll')
-rw-r--r--test/CodeGen/Generic/badFoldGEP.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/badFoldGEP.ll b/test/CodeGen/Generic/badFoldGEP.ll
index 0e581bc864..e0744af8a4 100644
--- a/test/CodeGen/Generic/badFoldGEP.ll
+++ b/test/CodeGen/Generic/badFoldGEP.ll
@@ -1,3 +1,5 @@
+; RUN: llvm-as -f %s -o - | llc
+
;; GetMemInstArgs() folded the two getElementPtr instructions together,
;; producing an illegal getElementPtr. That's because the type generated
;; by the last index for the first one is a structure field, not an array