• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -triple i686-elf %s -ast-print | FileCheck %s
2 
3 // REQUIRES: x86-registered-target
4 
assembly()5 void assembly() {
6   int added;
7   // CHECK: asm volatile ("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2));
8   __asm__ __volatile__("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2) );
9 }
10