aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2010-06-09 18:02:26 +0000
committerNate Begeman <natebegeman@mac.com>2010-06-09 18:02:26 +0000
commit60d274e356cf9c2d4d3ee9fe8e7252a8e6a192ee (patch)
tree79ef1a4f1152e9c910df4c0eb055eab434de9d9f
parent9f8b420ab332c91dd1899cbd531ad23180f91830 (diff)
downloadexternal_llvm-60d274e356cf9c2d4d3ee9fe8e7252a8e6a192ee.zip
external_llvm-60d274e356cf9c2d4d3ee9fe8e7252a8e6a192ee.tar.gz
external_llvm-60d274e356cf9c2d4d3ee9fe8e7252a8e6a192ee.tar.bz2
Further refine types for operations which take scalars.
This will be used primarily by NEON shift intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105733 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/TableGen/NeonEmitter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp
index 8b90bb1..4443376 100644
--- a/utils/TableGen/NeonEmitter.cpp
+++ b/utils/TableGen/NeonEmitter.cpp
@@ -310,13 +310,13 @@ static std::string BuiltinTypeString(const char mod, StringRef typestr,
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 @@ static std::string BuiltinTypeString(const char mod, StringRef typestr,
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";