2014-06-06 05:23:42 +08:00
|
|
|
// REQUIRES: arm-registered-target
|
2014-06-09 05:28:54 +08:00
|
|
|
// RUN: %clang_cc1 -triple armv8 -target-feature +neon %s -S -o /dev/null -verify -DWARN
|
|
|
|
// RUN: %clang_cc1 -triple armv8 -target-feature +neon %s -S -o /dev/null -Werror -verify
|
2014-06-06 05:23:42 +08:00
|
|
|
|
|
|
|
void set_endian() {
|
2014-06-09 05:28:54 +08:00
|
|
|
asm("setend be");
|
|
|
|
// expected-note@1 {{instantiated into assembly here}}
|
|
|
|
#ifdef WARN
|
|
|
|
// expected-warning@-3 {{deprecated}}
|
|
|
|
#else
|
|
|
|
// expected-error@-5 {{deprecated}}
|
|
|
|
#endif
|
2014-06-06 05:23:42 +08:00
|
|
|
}
|