aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/X86/sm3-error.c
blob: 9a38b4c8b8e9adab139bd06cedb0cecc66b4d2ec (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 %s -ffreestanding -triple=i686-unknown-unknown -target-feature +sm3  -fsyntax-only -verify

#include <immintrin.h>

__m128i test_mm_sm3rnds2_epi32(__m128i __A, __m128i __B, __m128i __C) {
  return _mm_sm3rnds2_epi32(__A, __B, __C, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
}