20 lines · c
1// RUN: %clang_cc1 -triple thumbv7-windows -fms-extensions -emit-llvm -o - %s \2// RUN: | FileCheck %s -check-prefix CHECK-MSVC3// RUN: not %clang_cc1 -triple armv7-eabi -emit-llvm %s -o /dev/null 2>&1 \4// RUN: | FileCheck %s -check-prefix CHECK-EABI5// REQUIRES: arm-registered-target6 7void emit() {8 __emit(0xdefe);9}10 11// CHECK-MSVC: call void asm sideeffect ".inst.n 0xDEFE", ""()12// CHECK-EABI: error: call to undeclared function '__emit'13 14void emit_truncated() {15 __emit(0x11110000); // movs r0, r016}17 18// CHECK-MSVC: call void asm sideeffect ".inst.n 0x0", ""()19 20