Skip to content

Commit 808ce12

Browse files
committed
[X86][TBM] Regenerate bextri intrinsics tests. NFCI.
llvm-svn: 310788
1 parent de425ae commit 808ce12

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

llvm/test/CodeGen/X86/tbm-intrinsics-x86_64.ll

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,47 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
12
; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+tbm < %s | FileCheck %s
23

34
define i32 @test_x86_tbm_bextri_u32(i32 %a) nounwind readnone {
5+
; CHECK-LABEL: test_x86_tbm_bextri_u32:
6+
; CHECK: # BB#0: # %entry
7+
; CHECK-NEXT: bextr $2814, %edi, %eax # imm = 0xAFE
8+
; CHECK-NEXT: retq
49
entry:
5-
; CHECK-LABEL: test_x86_tbm_bextri_u32:
6-
; CHECK-NOT: mov
7-
; CHECK: bextr $
810
%0 = tail call i32 @llvm.x86.tbm.bextri.u32(i32 %a, i32 2814)
911
ret i32 %0
1012
}
1113

1214
declare i32 @llvm.x86.tbm.bextri.u32(i32, i32) nounwind readnone
1315

1416
define i32 @test_x86_tbm_bextri_u32_m(i32* nocapture %a) nounwind readonly {
17+
; CHECK-LABEL: test_x86_tbm_bextri_u32_m:
18+
; CHECK: # BB#0: # %entry
19+
; CHECK-NEXT: bextr $2814, (%rdi), %eax # imm = 0xAFE
20+
; CHECK-NEXT: retq
1521
entry:
16-
; CHECK-LABEL: test_x86_tbm_bextri_u32_m:
17-
; CHECK-NOT: mov
18-
; CHECK: bextr $
1922
%tmp1 = load i32, i32* %a, align 4
2023
%0 = tail call i32 @llvm.x86.tbm.bextri.u32(i32 %tmp1, i32 2814)
2124
ret i32 %0
2225
}
2326

2427
define i64 @test_x86_tbm_bextri_u64(i64 %a) nounwind readnone {
28+
; CHECK-LABEL: test_x86_tbm_bextri_u64:
29+
; CHECK: # BB#0: # %entry
30+
; CHECK-NEXT: bextr $2814, %rdi, %rax # imm = 0xAFE
31+
; CHECK-NEXT: retq
2532
entry:
26-
; CHECK-LABEL: test_x86_tbm_bextri_u64:
27-
; CHECK-NOT: mov
28-
; CHECK: bextr $
2933
%0 = tail call i64 @llvm.x86.tbm.bextri.u64(i64 %a, i64 2814)
3034
ret i64 %0
3135
}
3236

3337
declare i64 @llvm.x86.tbm.bextri.u64(i64, i64) nounwind readnone
3438

3539
define i64 @test_x86_tbm_bextri_u64_m(i64* nocapture %a) nounwind readonly {
40+
; CHECK-LABEL: test_x86_tbm_bextri_u64_m:
41+
; CHECK: # BB#0: # %entry
42+
; CHECK-NEXT: bextr $2814, (%rdi), %rax # imm = 0xAFE
43+
; CHECK-NEXT: retq
3644
entry:
37-
; CHECK-LABEL: test_x86_tbm_bextri_u64_m:
38-
; CHECK-NOT: mov
39-
; CHECK: bextr $
4045
%tmp1 = load i64, i64* %a, align 8
4146
%0 = tail call i64 @llvm.x86.tbm.bextri.u64(i64 %tmp1, i64 2814)
4247
ret i64 %0

0 commit comments

Comments
 (0)