summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2010-06-28-nowarn.c
blob: 9cfb6636fdef2bc6ed2a238ad5aee0d1a57ed25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null
// This should not warn about unreferenced label. 7729514.
// XFAIL: *
// XTARGET: x86,i386,i686

void quarterAsm(int array[], int len)
{
  __asm
  {
    mov esi, array;
    mov ecx, len;
    shr ecx, 2;
loop:
    movdqa xmm0, [esi];
    psrad xmm0, 2;
    movdqa [esi], xmm0;
    add esi, 16;
    sub ecx, 1;
    jnz loop;
  }
}
OpenPOWER on IntegriCloud