diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/test-pic-1.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/test-pic-1.ll | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/test-pic-1.ll b/llvm/test/CodeGen/X86/test-pic-1.ll index 81e283f8117..1cad6c5c096 100644 --- a/llvm/test/CodeGen/X86/test-pic-1.ll +++ b/llvm/test/CodeGen/X86/test-pic-1.ll @@ -1,8 +1,9 @@ -; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic && -; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep _GLOBAL_OFFSET_TABLE_ && -; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 && -; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOT | wc -l | grep 3 && -; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 0 +; RUN: llvm-as < %s | \ +; RUN: llc -mtriple=i686-pc-linux-gnu -relocation-model=pic -o %t -f +; RUN: grep _GLOBAL_OFFSET_TABLE_ %t +; RUN: grep piclabel %t | wc -l | grep 3 +; RUN: grep GOT %t | wc -l | grep 3 +; RUN: not grep GOTOFF %t | wc -l @ptr = external global i32* @dst = external global i32 |