x64 Assembly Tutorial 56: SSE Comparisons that Set rFlags @WhatsACreel
x64 Assembly Tutorial 56: SSE Comparisons that Set rFlags  @WhatsACreel
Uploaded November 2012 | Updated November 2026, 3 hours ago
In this tutorial we're looking at comparison instructions that compare SSE registers but set the x86 flags register. These allow us to compare the lowest singles or doubles in SSE registers and then jump using the x86 conditional jumps or perform conditional moves.

There's a complication. Performing operations on NaN (Not a Number) may or may not generate an exception. Usually the result (if there's no exception) is QNaN but there seems very little literature on exactly what circumstances generate the Float Point Invalid Operation exception, I've included a table as the final slide which shows most of the operations outcomes on my CPU but I'm not sure that these results aren't hardware specific.

FaceBook:
facebook.com/pages/WhatsaCreel/167732956665435
x64 Assembly Tutorial 56: SSE Comparisons that Set rFlagsC++ Tutorial 12: Header Files ExplainedC++ Magical History Tour: Formative YearsNVIDIA CUDA Tutorial 9: Bank Conflictsx64 Assembly and C++ Tutorial 52: StructuresHow do Spell Checkers work? Levenshtein Edit DistanceNeural Nets 4: Adding Layers Explained (Deep Learning)AVX512 (1 of 3): Introduction and OverviewComputer Science Lockdown Quiz 2C++ Tutorial 23: Intro to DefineModern x64 Assembly 3: 32 and 64 bit RegistersAoS vs. SoA: Array of Structures versus Structure of Arrays
Creel |

x64 Assembly Tutorial 56: SSE Comparisons that Set rFlags

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER