From d2b64fc65bd38d3cfc16433419d25551db607d4b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 18 Mar 2009 09:38:28 +0000 Subject: [PATCH] Add -relocation-model=pic so that the test works both in Linux and Darwin. llvm-svn: 67191 --- llvm/test/CodeGen/X86/20090313-signext.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/CodeGen/X86/20090313-signext.ll b/llvm/test/CodeGen/X86/20090313-signext.ll index 67847b6e8586..b6c9ecbf47a4 100644 --- a/llvm/test/CodeGen/X86/20090313-signext.ll +++ b/llvm/test/CodeGen/X86/20090313-signext.ll @@ -1,6 +1,6 @@ -; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-pc-linux > %t +; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic > %t ; RUN: grep {movswl %ax, %edi} %t -; RUN: grep {movw x(%rip), %ax} %t +; RUN: grep {movw (%rax), %ax} %t @x = common global i16 0