Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / test / CodeGen / X86 / crc32-target-feature.ll
blob9dfe27e653511b580367d4d829cf20c55b35a123
1 ; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
4 define i32 @test1(i32 %a, i8 %b) nounwind #0 {
5 ; CHECK-LABEL: test1:
6 ; CHECK:         crc32b
7   %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)
8   ret i32 %tmp
11 define i32 @test2(i32 %a, i8 %b) nounwind #1 {
12 ; CHECK-LABEL: test2:
13 ; CHECK:         crc32b
14   %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)
15   ret i32 %tmp
18 define i32 @test3(i32 %a, i8 %b) nounwind #2 {
19 ; CHECK-LABEL: test3:
20 ; CHECK:         crc32b
21   %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)
22   ret i32 %tmp
25 declare i32 @llvm.x86.sse42.crc32.32.8(i32, i8) nounwind
27 attributes #0 = { "target-features"="+crc32" }
28 attributes #1 = { "target-features"="+cx8,+fxsr,-3dnow,-3dnowa,-aes,-avx,-avx2,-avx512bf16,-avx512bitalg,-avx512bw,-avx512cd,-avx512dq,-avx512f,-avx512ifma,-avx512pf,-avx512vbmi,-avx512vbmi2,-avx512vl,-avx512vnni,-avx512vp2intersect,-avx512vpopcntdq,-avxvnni,-f16c,-fma,-fma4,-gfni,-kl,-mmx,-pclmul,-sha,-sse,-sse2,-sse3,-sse4.1,-sse4.2,-sse4a,-ssse3,-vaes,-vpclmulqdq,-widekl,-x87,-xop,+crc32" }
29 attributes #2 = { "target-features"="+crc32,+cx8,+fxsr,-3dnow,-3dnowa,-aes,-avx,-avx2,-avx512bf16,-avx512bitalg,-avx512bw,-avx512cd,-avx512dq,-avx512f,-avx512ifma,-avx512pf,-avx512vbmi,-avx512vbmi2,-avx512vl,-avx512vnni,-avx512vp2intersect,-avx512vpopcntdq,-avxvnni,-f16c,-fma,-fma4,-gfni,-kl,-mmx,-pclmul,-sha,-sse,-sse2,-sse3,-sse4.1,-sse4.2,-sse4a,-ssse3,-vaes,-vpclmulqdq,-widekl,-x87,-xop" }