summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/tls-models.ll
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-08-02 00:28:10 +0000
committerMatthias Braun <matze@braunis.de>2017-08-02 00:28:10 +0000
commit6b898beb8e6bf5739d43c1d64646264afc595de8 (patch)
tree57c50181654d063b5efffd9a73939e413a55d413 /llvm/test/CodeGen/X86/tls-models.ll
parent83ca4fc7bc5b4675704c414e75bf95deb5f41b12 (diff)
downloadbcm5719-llvm-6b898beb8e6bf5739d43c1d64646264afc595de8.tar.gz
bcm5719-llvm-6b898beb8e6bf5739d43c1d64646264afc595de8.zip
X86: Do not use llc -march in tests.
`llc -march` is problematic because it only switches the target architecture, but leaves the operating system unchanged. This occasionally leads to indeterministic tests because the OS from LLVM_DEFAULT_TARGET_TRIPLE is used. However we can simply always use `llc -mtriple` instead. This changes all the tests to do this to avoid people using -march when they copy and paste parts of tests. See also the discussion in https://reviews.llvm.org/D35287 llvm-svn: 309774
Diffstat (limited to 'llvm/test/CodeGen/X86/tls-models.ll')
-rw-r--r--llvm/test/CodeGen/X86/tls-models.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/tls-models.ll b/llvm/test/CodeGen/X86/tls-models.ll
index 2377da4f025..e0c3f05ad05 100644
--- a/llvm/test/CodeGen/X86/tls-models.ll
+++ b/llvm/test/CodeGen/X86/tls-models.ll
@@ -1,10 +1,10 @@
-; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu | FileCheck -check-prefix=X64 %s
-; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X64_PIC %s
-; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu | FileCheck -check-prefix=X32 %s
-; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X32_PIC %s
+; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck -check-prefix=X64 %s
+; RUN: llc < %s -mtriple=x86_64-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X64_PIC %s
+; RUN: llc < %s -mtriple=i386-linux-gnu | FileCheck -check-prefix=X32 %s
+; RUN: llc < %s -mtriple=i386-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X32_PIC %s
; Darwin always uses the same model.
-; RUN: llc < %s -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck -check-prefix=DARWIN %s
+; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck -check-prefix=DARWIN %s
@external_gd = external thread_local global i32
@internal_gd = internal thread_local global i32 42
OpenPOWER on IntegriCloud