Home | History | Annotate | Download | only in FrontendC
      1 // RUN: %llvmgcc -S %s -fasm-blocks -o - | FileCheck %s
      2 // XFAIL: *
      3 // XTARGET: x86,i386,i686
      4 // 84282548
      5 
      6 void foo()
      7 {
      8 // CHECK:  %0 = call i32 asm sideeffect "", "={ecx}"() nounwind
      9 // CHECK:  %1 = call i32 asm sideeffect alignstack "sall $$3, $0", "={ecx},{ecx},~{dirflag},~{fpsr},~{flags},~{memory}"(i32 %0) nounwind
     10 // CHECK:  store i32 %1, i32* %"%ecx"
     11  __asm {
     12    sal ecx, 3;
     13    add esi, ecx;
     14    add edi, ecx;
     15  }
     16 }
     17