diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-24 18:48:36 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-24 18:48:36 +0000 |
commit | fddccef6cb4545971758cb6d0f94090d3703e59d (patch) | |
tree | ef2f3b2f7c1a0ae3337a736291f092707663f822 /test/CodeGen | |
parent | c0b6cd2c104fdd3f7a8b147a73a3121de034ffea (diff) |
Use shouldAssumeDSOLocal in isOffsetFoldingLegal.
This makes it slightly more powerful for dynamic-no-pic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/ga-offset2.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ga-offset2.ll b/test/CodeGen/X86/ga-offset2.ll new file mode 100644 index 00000000000..bc4a3493ff6 --- /dev/null +++ b/test/CodeGen/X86/ga-offset2.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -mtriple=i686-apple-darwin -relocation-model=dynamic-no-pic | FileCheck %s + +@var = external hidden global i32 +@p = external hidden global i32* + +define void @f() { +; CHECK: movl $_var+40, _p + store i32* getelementptr (i32, i32* @var, i64 10), i32** @p + ret void +} |