summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/ga-offset.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/ga-offset.ll')
-rw-r--r--test/CodeGen/X86/ga-offset.ll13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/CodeGen/X86/ga-offset.ll b/test/CodeGen/X86/ga-offset.ll
index 934c14921e99b..3613cf8bf598c 100644
--- a/test/CodeGen/X86/ga-offset.ll
+++ b/test/CodeGen/X86/ga-offset.ll
@@ -1,18 +1,11 @@
-; RUN: llc < %s -march=x86 > %t
-; RUN: not grep lea %t
-; RUN: not grep add %t
-; RUN: grep mov %t | count 1
-; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static > %t
-; RUN: not grep lea %t
-; RUN: not grep add %t
-; RUN: grep mov %t | count 1
-
-; This store should fold to a single mov instruction.
+; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s
@ptr = global i32* null
@dst = global [131072 x i32] zeroinitializer
define void @foo() nounwind {
+; This store should fold to a single mov instruction.
+; CHECK: movq $dst+64, ptr(%rip)
store i32* getelementptr ([131072 x i32], [131072 x i32]* @dst, i32 0, i32 16), i32** @ptr
ret void
}