blob: db82ca40665213e180aa4f2dbe99c9e7ed90c358 [file] [log] [blame]
Stephen Hines0e2c34f2015-03-23 12:09:02 -07001// 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
7void 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
14void emit_truncated() {
15 __emit(0x11110000); // movs r0, r0
16}
17
18// CHECK-MSVC: call void asm sideeffect ".inst.n 0x0", ""()
19