llvm.org GIT mirror llvm / 699d609
[X86][TBM] Regenerate bextri intrinsics tests. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310788 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 2 years ago
1 changed file(s) with 17 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
0 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
1 ; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+tbm < %s | FileCheck %s
12
23 define i32 @test_x86_tbm_bextri_u32(i32 %a) nounwind readnone {
4 ; CHECK-LABEL: test_x86_tbm_bextri_u32:
5 ; CHECK: # BB#0: # %entry
6 ; CHECK-NEXT: bextr $2814, %edi, %eax # imm = 0xAFE
7 ; CHECK-NEXT: retq
38 entry:
4 ; CHECK-LABEL: test_x86_tbm_bextri_u32:
5 ; CHECK-NOT: mov
6 ; CHECK: bextr $
79 %0 = tail call i32 @llvm.x86.tbm.bextri.u32(i32 %a, i32 2814)
810 ret i32 %0
911 }
1113 declare i32 @llvm.x86.tbm.bextri.u32(i32, i32) nounwind readnone
1214
1315 define i32 @test_x86_tbm_bextri_u32_m(i32* nocapture %a) nounwind readonly {
16 ; CHECK-LABEL: test_x86_tbm_bextri_u32_m:
17 ; CHECK: # BB#0: # %entry
18 ; CHECK-NEXT: bextr $2814, (%rdi), %eax # imm = 0xAFE
19 ; CHECK-NEXT: retq
1420 entry:
15 ; CHECK-LABEL: test_x86_tbm_bextri_u32_m:
16 ; CHECK-NOT: mov
17 ; CHECK: bextr $
1821 %tmp1 = load i32, i32* %a, align 4
1922 %0 = tail call i32 @llvm.x86.tbm.bextri.u32(i32 %tmp1, i32 2814)
2023 ret i32 %0
2124 }
2225
2326 define i64 @test_x86_tbm_bextri_u64(i64 %a) nounwind readnone {
27 ; CHECK-LABEL: test_x86_tbm_bextri_u64:
28 ; CHECK: # BB#0: # %entry
29 ; CHECK-NEXT: bextr $2814, %rdi, %rax # imm = 0xAFE
30 ; CHECK-NEXT: retq
2431 entry:
25 ; CHECK-LABEL: test_x86_tbm_bextri_u64:
26 ; CHECK-NOT: mov
27 ; CHECK: bextr $
2832 %0 = tail call i64 @llvm.x86.tbm.bextri.u64(i64 %a, i64 2814)
2933 ret i64 %0
3034 }
3236 declare i64 @llvm.x86.tbm.bextri.u64(i64, i64) nounwind readnone
3337
3438 define i64 @test_x86_tbm_bextri_u64_m(i64* nocapture %a) nounwind readonly {
39 ; CHECK-LABEL: test_x86_tbm_bextri_u64_m:
40 ; CHECK: # BB#0: # %entry
41 ; CHECK-NEXT: bextr $2814, (%rdi), %rax # imm = 0xAFE
42 ; CHECK-NEXT: retq
3543 entry:
36 ; CHECK-LABEL: test_x86_tbm_bextri_u64_m:
37 ; CHECK-NOT: mov
38 ; CHECK: bextr $
3944 %tmp1 = load i64, i64* %a, align 8
4045 %0 = tail call i64 @llvm.x86.tbm.bextri.u64(i64 %tmp1, i64 2814)
4146 ret i64 %0