Skip to content

Commit

Permalink
turn off partword-atomics on power
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Sep 19, 2016
1 parent e01eb54 commit bbca3b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5939,6 +5939,10 @@ static inline SmallVector<std::string,10> getTargetFeatures(std::string &cpu)
// is disabled.
HostFeatures["cx16"] = true;
#endif
#if defined(_CPU_PPC64_)
// Temporarily disable partword (i16) atomics due to LLVM bug(30451).
HostFeatures["partword-atomics"] = false;
#endif

// Figure out if we know the cpu_target
cpu = (strcmp(jl_options.cpu_target,"native") ? jl_options.cpu_target :
Expand Down

0 comments on commit bbca3b4

Please sign in to comment.