1 // RUN: %clang_cc1 -triple thumbv7-windows -fms-extensions -emit-llvm -o - %s \ 2 // RUN: | FileCheck %s -check-prefix CHECK-MSVC 3 // RUN: %clang_cc1 -triple armv7-eabi -emit-llvm %s -o /dev/null 2>&1 \ 4 // RUN: | FileCheck %s -check-prefix CHECK-EABI 5 // REQUIRES: arm-registered-target 6 7 void emit() { 8 __emit(0xdefe); 9 } 10 11 // CHECK-MSVC: call void asm sideeffect ".inst.n 0xDEFE", ""() 12 // CHECK-EABI: warning: implicit declaration of function '__emit' is invalid in C99 13 14 void emit_truncated() { 15 __emit(0x11110000); // movs r0, r0 16 } 17 18 // CHECK-MSVC: call void asm sideeffect ".inst.n 0x0", ""() 19 20