Mercurial > hg > graal-jvmci-8
comparison src/share/vm/adlc/archDesc.cpp @ 6179:8c92982cbbc4
7119644: Increase superword's vector size up to 256 bits
Summary: Increase vector size up to 256-bits for YMM AVX registers on x86.
Reviewed-by: never, twisti, roland
author | kvn |
---|---|
date | Fri, 15 Jun 2012 01:25:19 -0700 |
parents | db2e64ca2d5a |
children | 8e47bac5643a |
comparison
equal
deleted
inserted
replaced
6146:eba1d5bce9e8 | 6179:8c92982cbbc4 |
---|---|
1 // | 1 // |
2 // Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 // Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 // | 4 // |
5 // This code is free software; you can redistribute it and/or modify it | 5 // This code is free software; you can redistribute it and/or modify it |
6 // under the terms of the GNU General Public License version 2 only, as | 6 // under the terms of the GNU General Public License version 2 only, as |
7 // published by the Free Software Foundation. | 7 // published by the Free Software Foundation. |
909 // Return the type signature for the ideal operation | 909 // Return the type signature for the ideal operation |
910 const char *ArchDesc::getIdealType(const char *idealOp) { | 910 const char *ArchDesc::getIdealType(const char *idealOp) { |
911 // Find last character in idealOp, it specifies the type | 911 // Find last character in idealOp, it specifies the type |
912 char last_char = 0; | 912 char last_char = 0; |
913 const char *ptr = idealOp; | 913 const char *ptr = idealOp; |
914 for( ; *ptr != '\0'; ++ptr) { | 914 for (; *ptr != '\0'; ++ptr) { |
915 last_char = *ptr; | 915 last_char = *ptr; |
916 } | 916 } |
917 | 917 |
918 // Match Vector types. | |
919 if (strncmp(idealOp, "Vec",3)==0) { | |
920 switch(last_char) { | |
921 case 'S': return "TypeVect::VECTS"; | |
922 case 'D': return "TypeVect::VECTD"; | |
923 case 'X': return "TypeVect::VECTX"; | |
924 case 'Y': return "TypeVect::VECTY"; | |
925 default: | |
926 internal_err("Vector type %s with unrecognized type\n",idealOp); | |
927 } | |
928 } | |
929 | |
918 // !!!!! | 930 // !!!!! |
919 switch( last_char ) { | 931 switch(last_char) { |
920 case 'I': return "TypeInt::INT"; | 932 case 'I': return "TypeInt::INT"; |
921 case 'P': return "TypePtr::BOTTOM"; | 933 case 'P': return "TypePtr::BOTTOM"; |
922 case 'N': return "TypeNarrowOop::BOTTOM"; | 934 case 'N': return "TypeNarrowOop::BOTTOM"; |
923 case 'F': return "Type::FLOAT"; | 935 case 'F': return "Type::FLOAT"; |
924 case 'D': return "Type::DOUBLE"; | 936 case 'D': return "Type::DOUBLE"; |