summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_gen_asm/memcpy-unroll-conprop.cmm
blob: bdb5c3cc9e12d1201ef194b24e05e9a3996ae16f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "Cmm.h"

// Check that we propagate the constants into the branch
callMemcpy (W_ dst, W_ src)
{
    W_ size;
    W_ alig;
    size = 16;
#define alig 4
    if (dst != 0) {
      prim %memcpy(dst, src, size, alig);
    }
    return ();
}