llvm-for-llvmta/tools/clang/test/Sema/ast-print-x86.c

10 lines
295 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple i686-elf %s -ast-print | FileCheck %s
// REQUIRES: x86-registered-target
void assembly() {
int added;
// CHECK: asm volatile ("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2));
__asm__ __volatile__("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2) );
}