This article provides information how to calculate number of TCAM entries for loopback firewall filter
The QFX3500 has total 256 IRACL TCAM entries, so we should should be able to determine the TCAM usage by loopback firewall filter
Please refer to KB article KB21074 [juniper.net] to calculate the TCAM entries for the QFX3500, for filter terms with multiple (ranges) match conditions, when filter is applied for physical interface. When a firewall filter applies to a loopback filter, 3 TCAM entries are used where the same firewall filter uses 1 TCAM if it is applied to a physical interface