================
@@ -0,0 +1,104 @@
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-unknown-linux -target-feature +avx512bw -target-feature
+avx512vl -fclangir -emit-cir -o %t.cir -Wall -Werror -Wsign-conversion
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-unknown-linux -target-feature +avx512bw -target-feature
+avx512vl -fclangir -emit-llvm -o %t.ll -Wall -Werror -Wsign-conversion
+// RUN: FileCheck --check-prefixes=LLVM --input-file=%t.ll %s
+
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-unknown-linux -target-feature +avx512bw -target-feature
+avx512vl -fno-signed-char -fclangir -emit-cir -o %t.cir -Wall -Werror
-Wsign-conversion
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-unknown-linux -target-feature +avx512bw -target-feature
+avx512vl -fno-signed-char -fclangir -emit-llvm -o %t.ll -Wall -Werror
-Wsign-conversion
+// RUN: FileCheck --check-prefixes=LLVM-UNSIGNED-CHAR --input-file=%t.ll %s
+
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-unknown-linux -target-feature +avx10.1-512 -target-feature
+avx512vl -fclangir -emit-cir -o %t.cir -Wall -Werror -Wsign-conversion
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-unknown-linux -target-feature +avx10.1-512 -target-feature
+avx512vl -fclangir -emit-llvm -o %t.ll -Wall -Werror -Wsign-conversion
+// RUN: FileCheck --check-prefixes=LLVM --input-file=%t.ll %s
+
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-apple-darwin -target-feature +avx512bw -target-feature +avx512vl
-emit-llvm -o - -Wall -Werror -Wsign-conversion | FileCheck %s
--check-prefixes=OGCG
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-apple-darwin -target-feature +avx512bw -target-feature +avx512vl
-fno-signed-char -emit-llvm -o - -Wall -Werror -Wsign-conversion | FileCheck %s
--check-prefixes=OGCG
+// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s
-triple=x86_64-apple-darwin -target-feature +avx10.1-512 -emit-llvm -o - -Wall
-Werror -Wsign-conversion | FileCheck %s --check-prefixes=OGCG
+
+
+#include <immintrin.h>
+
+__m128i test_mm_movm_epi8(__mmask16 __A) {
+ // CIR-LABEL: _mm_movm_epi8
+ // CIR: %{{.*}} = cir.cast bitcast %{{.*}} : !u16i ->
!cir.vector<!cir.int<s, 1> x 16>
+ // CIR: %{{.*}} = cir.cast integral %{{.*}} : !cir.vector<!cir.int<s, 1> x
16> -> !cir.vector<{{!s8i|!u8i}} x 16>
+
+ // LLVM-LABEL: @test_mm_movm_epi8
+ // LLVM: %{{.*}} = bitcast i16 %{{.*}} to <16 x i1>
+ // LLVM: %{{.*}} = sext <16 x i1> %{{.*}} to <16 x i8>
----------------
andykaylor wrote:
Add OGCG checks throughout this test
https://github.com/llvm/llvm-project/pull/171694
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits