From 47370775e032e3e22e20402a25ea9fd81fa33466 Mon Sep 17 00:00:00 2001 From: Tim Haines Date: Wed, 20 Dec 2023 08:50:10 -0600 Subject: [PATCH] Fix value check MMX has the value 0x00090000, so any category with those two bits set will match. Instead, we want to match the third nibble exactly. --- dataflowAPI/src/liveness.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataflowAPI/src/liveness.C b/dataflowAPI/src/liveness.C index 708352554a..7b76f54df3 100644 --- a/dataflowAPI/src/liveness.C +++ b/dataflowAPI/src/liveness.C @@ -625,10 +625,10 @@ void LivenessAnalyzer::clean(Function *func){ bool LivenessAnalyzer::isMMX(MachRegister machReg){ auto const arch = machReg.getArchitecture(); if (arch == Arch_x86) { - return (machReg.val() & x86::MMX) == x86::MMX; + return (machReg.val() & 0x00ff0000) == x86::MMX; } if (arch == Arch_x86_64) { - return (machReg.val() & x86_64::MMX) == x86_64::MMX; + return (machReg.val() & 0x00ff0000) == x86_64::MMX; } return false; }