contract C { function test() public view returns (bool) { address x; assembly { x := caller() } return x == msg.sender; } } // ==== // compileViaYul: true // ---- // test() -> true