Recognize bswapl as bswap too.
llvm-svn: 67072
diff --git a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
index f3faa70..f1d97a3 100644
--- a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -411,8 +411,11 @@
// bswap $0
if (AsmPieces.size() == 2 &&
- (AsmPieces[0] == "bswap" || AsmPieces[0] == "bswapq") &&
- (AsmPieces[1] == "$0" || AsmPieces[1] == "${0:q}")) {
+ (AsmPieces[0] == "bswap" ||
+ AsmPieces[0] == "bswapq" ||
+ AsmPieces[0] == "bswapl") &&
+ (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);