File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
compiler-rt/lib/builtins/cpu_model Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ static const char *getIntelProcessorTypeAndSubtype(unsigned Family,
328
328
const char * CPU = 0 ;
329
329
330
330
switch (Family ) {
331
- case 6 :
331
+ case 0x6 :
332
332
switch (Model ) {
333
333
case 0x0f : // Intel Core 2 Duo processor, Intel Core 2 Duo mobile
334
334
// processor, Intel Core 2 Quad processor, Intel Core 2 Quad
@@ -626,7 +626,7 @@ static const char *getIntelProcessorTypeAndSubtype(unsigned Family,
626
626
break ;
627
627
}
628
628
break ;
629
- case 19 :
629
+ case 0x13 :
630
630
switch (Model ) {
631
631
// Diamond Rapids:
632
632
case 0x01 :
Original file line number Diff line number Diff line change @@ -759,20 +759,20 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
759
759
StringRef CPU;
760
760
761
761
switch (Family) {
762
- case 3 :
762
+ case 0x3 :
763
763
CPU = " i386" ;
764
764
break ;
765
- case 4 :
765
+ case 0x4 :
766
766
CPU = " i486" ;
767
767
break ;
768
- case 5 :
768
+ case 0x5 :
769
769
if (testFeature (X86::FEATURE_MMX)) {
770
770
CPU = " pentium-mmx" ;
771
771
break ;
772
772
}
773
773
CPU = " pentium" ;
774
774
break ;
775
- case 6 :
775
+ case 0x6 :
776
776
switch (Model) {
777
777
case 0x0f : // Intel Core 2 Duo processor, Intel Core 2 Duo mobile
778
778
// processor, Intel Core 2 Quad processor, Intel Core 2 Quad
@@ -1120,7 +1120,7 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
1120
1120
break ;
1121
1121
}
1122
1122
break ;
1123
- case 15 : {
1123
+ case 0xf : {
1124
1124
if (testFeature (X86::FEATURE_64BIT)) {
1125
1125
CPU = " nocona" ;
1126
1126
break ;
@@ -1132,7 +1132,7 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
1132
1132
CPU = " pentium4" ;
1133
1133
break ;
1134
1134
}
1135
- case 19 :
1135
+ case 0x13 :
1136
1136
switch (Model) {
1137
1137
// Diamond Rapids:
1138
1138
case 0x01 :
You can’t perform that action at this time.
0 commit comments