[MLIR][TOSA] Update CustomOp input and output names (#118408)
[llvm-project.git] / clang / test / CodeGen / X86 / cmp-avx-builtins-error.c
blob82b041c73fc90fc1310e5b0ce391bb30e4acaa1e
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown \
2 // RUN: -target-feature +avx -fsyntax-only -verify
3 // RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown \
4 // RUN: -target-feature +avx -fsyntax-only -verify
6 #include <immintrin.h>
8 __m128d test_mm_cmp_pd(__m128d a, __m128d b) {
9 return _mm_cmp_pd(a, b, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
12 __m128d test_mm_cmp_sd(__m128d a, __m128d b) {
13 return _mm_cmp_sd(a, b, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
16 __m128 test_mm_cmp_ps(__m128 a, __m128 b) {
17 return _mm_cmp_ps(a, b, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
20 __m128 test_mm_cmp_ss(__m128 a, __m128 b) {
21 return _mm_cmp_ss(a, b, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}