[llvm-commits] [llvm] r105733 - /llvm/trunk/utils/TableGen/NeonEmitter.cpp
Nate Begeman
natebegeman at mac.com
Wed Jun 9 11:02:26 PDT 2010
Author: sampo
Date: Wed Jun 9 13:02:26 2010
New Revision: 105733
URL: http://llvm.org/viewvc/llvm-project?rev=105733&view=rev
Log:
Further refine types for operations which take scalars.
This will be used primarily by NEON shift intrinsics.
Modified:
llvm/trunk/utils/TableGen/NeonEmitter.cpp
Modified: llvm/trunk/utils/TableGen/NeonEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/NeonEmitter.cpp?rev=105733&r1=105732&r2=105733&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/NeonEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/NeonEmitter.cpp Wed Jun 9 13:02:26 2010
@@ -310,13 +310,13 @@
return quad ? "V48c" : "V24c";
if (mod == '4')
return quad ? "V64c" : "V32c";
- if (mod == 'f' || (ck == ClassI && type == 'f'))
+ if (mod == 'f' || (ck != ClassB && type == 'f'))
return quad ? "V4f" : "V2f";
- if (ck == ClassI && type == 's')
+ if (ck != ClassB && type == 's')
return quad ? "V8s" : "V4s";
- if (ck == ClassI && type == 'i')
+ if (ck != ClassB && type == 'i')
return quad ? "V4i" : "V2i";
- if (ck == ClassI && type == 'l')
+ if (ck != ClassB && type == 'l')
return quad ? "V2LLi" : "V1LLi";
return quad ? "V16c" : "V8c";
@@ -330,13 +330,13 @@
if (mod == '4')
return quad ? "V16cV16cV16cV16c" : "V8cV8cV8cV8c";
- if (mod == 'f' || (ck == ClassI && type == 'f'))
+ if (mod == 'f' || (ck != ClassB && type == 'f'))
return quad ? "V4f" : "V2f";
- if (ck == ClassI && type == 's')
+ if (ck != ClassB && type == 's')
return quad ? "V8s" : "V4s";
- if (ck == ClassI && type == 'i')
+ if (ck != ClassB && type == 'i')
return quad ? "V4i" : "V2i";
- if (ck == ClassI && type == 'l')
+ if (ck != ClassB && type == 'l')
return quad ? "V2LLi" : "V1LLi";
return quad ? "V16c" : "V8c";
More information about the llvm-commits
mailing list