Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / X86 / cmpccxadd-builtins-error.c
blob30515b48e85894ac1815a600114db59721050838
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown \
2 // RUN: -target-feature +cmpccxadd -emit-llvm -fsyntax-only -verify
4 #include <immintrin.h>
6 int test_cmpccxadd32(void *__A, int __B, int __C) {
7 return _cmpccxadd_epi32(__A, __B, __C, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
10 long long test_cmpccxadd64(void *__A, long long __B, long long __C) {
11 return _cmpccxadd_epi64(__A, __B, __C, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}