diff options
author | Kai Nacke <kai@redstar.de> | 2020-02-05 15:08:19 -0500 |
---|---|---|
committer | Kai Nacke <kai@redstar.de> | 2020-02-10 04:14:05 -0500 |
commit | a5040d5ec97ecac9940275eb59175f0bdbd26ab4 (patch) | |
tree | 02f5079b27d03f2190841a65d0d68114a7bbd355 /llvm/lib | |
parent | 68908993ebd2af459cd0f2ed6ab340bf62fb3e9d (diff) | |
download | llvm-a5040d5ec97ecac9940275eb59175f0bdbd26ab4.zip llvm-a5040d5ec97ecac9940275eb59175f0bdbd26ab4.tar.gz llvm-a5040d5ec97ecac9940275eb59175f0bdbd26ab4.tar.bz2 |
[SytemZ] Disable vector ABI when using option -march=arch[8|9|10]
When specifying -march=arch[8|9|10], those CPU types do NOT support
the vector extension. In this case the vector ABI must be disabled.
The generated data layout should NOT contain 64-v128.
Reviewers: uweigand
Differential Revision: https://reviews.llvm.org/D74146
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp index 0f319ba..8a63ffe 100644 --- a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp +++ b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp @@ -42,7 +42,8 @@ static bool UsesVectorABI(StringRef CPU, StringRef FS) { bool VectorABI = true; bool SoftFloat = false; if (CPU.empty() || CPU == "generic" || - CPU == "z10" || CPU == "z196" || CPU == "zEC12") + CPU == "z10" || CPU == "z196" || CPU == "zEC12" || + CPU == "arch8" || CPU == "arch9" || CPU == "arch10") VectorABI = false; SmallVector<StringRef, 3> Features; |