Floyd agreed to a two-year, $20 million contract with the 49ers on Monday, Ian Rapoport of NFL Network reports.
Floyd is coming off a one-year stint with the Bills that saw him tie a career high with 10.5 sacks among his 32 tackles (21 solo) while adding one pass defensed and one forced fumble across 17 games. The 31-year-old has demonstrated durability by not missing a game during the previous six seasons and now projects to provide edge-rush assistance opposite Nick Bosa.