summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fastcall-correct-mangling.ll
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-03 04:03:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-03 04:03:51 +0000
commit3c2d4bf97fa96fe171883cd80e4ea93fc43563e6 (patch)
tree736e1e2b833b3475c24a0569a546870cf25dd5fb /test/CodeGen/X86/fastcall-correct-mangling.ll
parent0c794b87253bcd597f87960632f8654a151f37ec (diff)
downloadllvm-3c2d4bf97fa96fe171883cd80e4ea93fc43563e6.tar.gz
llvm-3c2d4bf97fa96fe171883cd80e4ea93fc43563e6.tar.bz2
llvm-3c2d4bf97fa96fe171883cd80e4ea93fc43563e6.tar.xz
Pass target triple string in to TargetMachine constructor.
This is not just a matter of passing in the target triple from the module; currently backends are making decisions based on the build and host architecture. The goal is to migrate to making these decisions based off of the triple (in conjunction with the feature string). Thus most clients pass in the target triple, or the host triple if that is empty. This has one important change in the way behavior of the JIT and llc. For the JIT, it was previously selecting the Target based on the host (naturally), but it was setting the target machine features based on the triple from the module. Now it is setting the target machine features based on the triple of the host. For LLC, -march was previously only used to select the target, the target machine features were initialized from the module's triple (which may have been empty). Now the target triple is taken from the module, or the host's triple is used if that is empty. Then the triple is adjusted to match -march. The take away is that -march for llc is now used in conjunction with the host triple to initialize the subtarget. If users want more deterministic behavior from llc, they should use -mtriple, or set the triple in the input module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fastcall-correct-mangling.ll')
-rw-r--r--test/CodeGen/X86/fastcall-correct-mangling.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/fastcall-correct-mangling.ll b/test/CodeGen/X86/fastcall-correct-mangling.ll
index d2db279551..303fce5b89 100644
--- a/test/CodeGen/X86/fastcall-correct-mangling.ll
+++ b/test/CodeGen/X86/fastcall-correct-mangling.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=mingw32 | \
+; RUN: llvm-as < %s | llc -mtriple=i386-unknown-mingw32 | \
; RUN: grep {@12}
; Check that a fastcall function gets correct mangling