638 case Short:
639 case Char:
640 asm.cmpw(dst, src);
641 break;
642 case Int:
643 asm.cmpl(dst, src);
644 break;
645 default:
646 asm.cmpq(dst, src);
647 }
648 }
649
650 private static boolean supportsAVX2(LIRGeneratorTool tool) {
651 return supports(tool, CPUFeature.AVX2);
652 }
653
654 private static boolean supports(LIRGeneratorTool tool, CPUFeature cpuFeature) {
655 return ((AMD64) tool.target().arch).getFeatures().contains(cpuFeature);
656 }
657 }
|
638 case Short:
639 case Char:
640 asm.cmpw(dst, src);
641 break;
642 case Int:
643 asm.cmpl(dst, src);
644 break;
645 default:
646 asm.cmpq(dst, src);
647 }
648 }
649
650 private static boolean supportsAVX2(LIRGeneratorTool tool) {
651 return supports(tool, CPUFeature.AVX2);
652 }
653
654 private static boolean supports(LIRGeneratorTool tool, CPUFeature cpuFeature) {
655 return ((AMD64) tool.target().arch).getFeatures().contains(cpuFeature);
656 }
657 }
658
|