1 // REQUIRES: arm-registered-target
2 // RUN: not %clang_cc1 -emit-obj -triple armv6-unknown-unknown -o %t %s 2>&1 | FileCheck %s
3 // RUN: not %clang_cc1 -emit-obj -triple armv6-unknown-unknown -flto -o %t %s 2>&1 | FileCheck %s
5 /// Test the diagnostic behavior considering the whole system including the driver.
6 // RUN: not %clang --target=armv6-unknown-unknown -c -flto=thin -o %t %s 2>&1 | FileCheck %s
7 #pragma clang diagnostic ignored "-Wmissing-noreturn"
8 __asm__(".Lfoo: movw r2, #:lower16:.Lbar - .Lfoo");
9 // CHECK: <inline asm>:1:8: error: instruction requires: armv6t2