brintos

brintos / llvm-project-archived public Read only

0
0
Text · 836 B · a819f25 Raw
20 lines · c
1// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-- -target-feature +sm4 \2// RUN: -target-feature +avx10.2 -emit-llvm -o - -Wall -Werror | FileCheck %s3// RUN: %clang_cc1 %s -ffreestanding -triple=i386-- -target-feature +sm4 \4// RUN: -target-feature +avx10.2 -emit-llvm -o - -Wall -Werror | FileCheck %s5 6#include <immintrin.h>7#include <stddef.h>8 9__m512i test_mm512_sm4key4_epi32(__m512i __A, __m512i __B) {10  // CHECK-LABEL: @test_mm512_sm4key4_epi32(11  // CHECK: call <16 x i32> @llvm.x86.vsm4key4512(<16 x i32> %{{.*}}, <16 x i32> %{{.*}})12  return _mm512_sm4key4_epi32(__A, __B);13}14 15__m512i test_mm512_sm4rnds4_epi32(__m512i __A, __m512i __B) {16  // CHECK-LABEL: @test_mm512_sm4rnds4_epi32(17  // CHECK: call <16 x i32> @llvm.x86.vsm4rnds4512(<16 x i32> %{{.*}}, <16 x i32> %{{.*}})18  return _mm512_sm4rnds4_epi32(__A, __B);19}20