Spray a 9 x 5-inch bread pan with cooking spray. In a large bowl. Squeeze the soft garlic pulp out of each clove and mix it with the sugar, baking powder, flours, rosemary, olive oil, and salt. Pour the beer into this mixture, and mix it in until it is combined. Do not over mix.