Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / builtins-arm-msvc-compat-only.c
blob42cc9d70a14278bebef486bd53d45ddb7a57540a
1 // RUN: %clang_cc1 -triple thumbv7-windows -fms-extensions -emit-llvm -o - %s \
2 // RUN: | FileCheck %s -check-prefix CHECK-MSVC
3 // RUN: not %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
7 void emit() {
8 __emit(0xdefe);
11 // CHECK-MSVC: call void asm sideeffect ".inst.n 0xDEFE", ""()
12 // CHECK-EABI: error: call to undeclared function '__emit'
14 void emit_truncated() {
15 __emit(0x11110000); // movs r0, r0
18 // CHECK-MSVC: call void asm sideeffect ".inst.n 0x0", ""()