summaryrefslogtreecommitdiff
path: root/aarch64_small/mono-splices/Replicate.sail
blob: a3c464e58e2e02daeae4a12902d6dbf184ed218f (plain)
1
2
3
4
5
6
function Replicate(N, x) = {
  assert(N % 'M == 0, "((N MOD M) == 0)");
  let 'O = N / 'M;
  assert(constraint('O * 'M == 'N));
  return(replicate_bits(x, N / 'M))
}