()
| 151 | |
| 152 | #[test] |
| 153 | fn test_any_gpr() { |
| 154 | let bitset = RegBitSet::int(UNIVERSE, !UNIVERSE, MAX); |
| 155 | let zero = RegBitSet::float(0, 0, MAX); |
| 156 | let mut set = RegSet::new(bitset, zero); |
| 157 | for _ in 0..16 { |
| 158 | let gpr = set.reg_for_class(RegClass::Int); |
| 159 | assert!(gpr.is_some()) |
| 160 | } |
| 161 | |
| 162 | assert!(!set.available(RegClass::Int)); |
| 163 | assert!(set.reg_for_class(RegClass::Int).is_none()) |
| 164 | } |
| 165 | |
| 166 | #[test] |
| 167 | fn test_gpr() { |
nothing calls this directly
no test coverage detected