summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-03-17 02:17:27 +0000
committerDan Gohman <gohman@apple.com>2009-03-17 02:17:27 +0000
commit77a9279d80f3a29cea61001b30d1a471f42281d0 (patch)
tree7712bc773d4ee82d9837ef3cffec575ef99f8272 /llvm/lib/Target/X86/X86TargetAsmInfo.cpp
parent076b0b649b59a42d5e14308b5a04a40c036fcb46 (diff)
downloadbcm5719-llvm-77a9279d80f3a29cea61001b30d1a471f42281d0.tar.gz
bcm5719-llvm-77a9279d80f3a29cea61001b30d1a471f42281d0.zip
Recognize "bswapq" as an alternate spelling for the bswap instruction.
llvm-svn: 67071
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetAsmInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
index 226feb7c1e6..f3faa7022cd 100644
--- a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -411,8 +411,8 @@ bool X86TargetAsmInfo<BaseTAI>::ExpandInlineAsm(CallInst *CI) const {
// bswap $0
if (AsmPieces.size() == 2 &&
- AsmPieces[0] == "bswap" && (AsmPieces[1] == "$0" ||
- AsmPieces[1] == "${0:q}")) {
+ (AsmPieces[0] == "bswap" || AsmPieces[0] == "bswapq") &&
+ (AsmPieces[1] == "$0" || AsmPieces[1] == "${0:q}")) {
// No need to check constraints, nothing other than the equivalent of
// "=r,0" would be valid here.
return LowerToBSwap(CI);
OpenPOWER on IntegriCloud