diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-24 18:04:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-24 18:04:39 +0000 |
commit | 955d3569e7599840a1ea3692339709f98551a6ac (patch) | |
tree | 6fb2a99f1c5c925af4693f25ce83088a17140a35 /llvm/test/CodeGen/X86/ga-offset.ll | |
parent | e160f0d0d6a65dc2361cd9d3d609916f420f81ca (diff) | |
download | bcm5719-llvm-955d3569e7599840a1ea3692339709f98551a6ac.tar.gz bcm5719-llvm-955d3569e7599840a1ea3692339709f98551a6ac.zip |
Use FileCheck. NFC.
llvm-svn: 273699
Diffstat (limited to 'llvm/test/CodeGen/X86/ga-offset.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/ga-offset.ll | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/X86/ga-offset.ll b/llvm/test/CodeGen/X86/ga-offset.ll index 934c14921e9..3613cf8bf59 100644 --- a/llvm/test/CodeGen/X86/ga-offset.ll +++ b/llvm/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 } |