I'd like to identify in Ghidra a specific sequence of instructions, which I get from MSVC Debug in Visual Studio compiling my own function:

[![enter image description here][1]][1]

What I'm looking for so is (for the same DLL, decompiled in Ghidra) to intercept the sequence `movss/movss/movss/movss/lea/lea/lea`, in the hoping to intercept the C++ Clamp function I've defined:

	template <typename T>
	T Clamp(const T& min, const T& max, const T& value)
	{
		if (value < min)
		{
			return min;
		}
		else if (value > max)
		{
			return max;
		}
		return value;
	}

What's the correct way to do this in Ghidra?

If I try *Instruction Pattern Search* feature in Ghidra, inserting the first 4 movss of the sequence (selecting the instructions show in the VS Debugger, after enabling *Show Code Bytes*; i.e. in order `f3 0f 10/f3 0f 11/f3 0f 10/f3 0f 11`):

[![enter image description here][2]][2]

it doesn't return any hit. 

So, is this a mismatch from VS Code disassembly and the Listing elaborated by Ghidra, or am I searching in a wrong way?


  [1]: https://i.sstatic.net/rMoq1.png
  [2]: https://i.sstatic.net/IaKEU.png
  [3]: https://i.sstatic.net/0FTNb.png