diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-07-07 09:06:35 +0000 | 
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-07-07 09:06:35 +0000 | 
| commit | 55beb64bd063196acda5dd51e7e63f2ceae48ee7 (patch) | |
| tree | bf843e8d0c020fb8cbf167c850432b2e133392b9 /llvm/lib/Target | |
| parent | 03376dc2c525c725323993fe0a17fd5d7313a9e7 (diff) | |
| download | bcm5719-llvm-55beb64bd063196acda5dd51e7e63f2ceae48ee7.tar.gz bcm5719-llvm-55beb64bd063196acda5dd51e7e63f2ceae48ee7.zip | |
CodeGen: it turns out that NAND is not the same thing as BIC. At all.
We've been performing the wrong operation on ARM for "atomicrmw nand" for
years, since "a NAND b" is "~(a & b)" rather than ARM's very tempting "a & ~b".
This bled over into the generic expansion pass.
So I assume no-one has ever actually tried to do an atomic nand in the real
world. Oh well.
llvm-svn: 212443
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index d9f8967dbf0..5e866771bd1 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -2402,7 +2402,7 @@ bool X86FastISel::X86VisitIntrinsicCall(const IntrinsicInst &I) {      case Intrinsic::usub_with_overflow:        BaseOpc = ISD::SUB; CondOpc = X86::SETBr; break;      case Intrinsic::smul_with_overflow: -      BaseOpc = ISD::MUL; CondOpc = X86::SETOr; break; +      BaseOpc = X86ISD::SMUL; CondOpc = X86::SETOr; break;      case Intrinsic::umul_with_overflow:        BaseOpc = X86ISD::UMUL; CondOpc = X86::SETOr; break;      } | 

