From 699d609dfda10c236f468c043f4e8da732cd82de Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 13 Aug 2017 11:56:15 +0000 Subject: [PATCH] [X86][TBM] Regenerate bextri intrinsics tests. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310788 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/tbm-intrinsics-x86_64.ll | 29 +++++++++++++---------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/test/CodeGen/X86/tbm-intrinsics-x86_64.ll b/test/CodeGen/X86/tbm-intrinsics-x86_64.ll index 2ed216484bb..5a8c1bb5a10 100644 --- a/test/CodeGen/X86/tbm-intrinsics-x86_64.ll +++ b/test/CodeGen/X86/tbm-intrinsics-x86_64.ll @@ -1,10 +1,12 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+tbm < %s | FileCheck %s define i32 @test_x86_tbm_bextri_u32(i32 %a) nounwind readnone { +; CHECK-LABEL: test_x86_tbm_bextri_u32: +; CHECK: # BB#0: # %entry +; CHECK-NEXT: bextr $2814, %edi, %eax # imm = 0xAFE +; CHECK-NEXT: retq entry: - ; CHECK-LABEL: test_x86_tbm_bextri_u32: - ; CHECK-NOT: mov - ; CHECK: bextr $ %0 = tail call i32 @llvm.x86.tbm.bextri.u32(i32 %a, i32 2814) ret i32 %0 } @@ -12,20 +14,22 @@ entry: declare i32 @llvm.x86.tbm.bextri.u32(i32, i32) nounwind readnone define i32 @test_x86_tbm_bextri_u32_m(i32* nocapture %a) nounwind readonly { +; CHECK-LABEL: test_x86_tbm_bextri_u32_m: +; CHECK: # BB#0: # %entry +; CHECK-NEXT: bextr $2814, (%rdi), %eax # imm = 0xAFE +; CHECK-NEXT: retq entry: - ; CHECK-LABEL: test_x86_tbm_bextri_u32_m: - ; CHECK-NOT: mov - ; CHECK: bextr $ %tmp1 = load i32, i32* %a, align 4 %0 = tail call i32 @llvm.x86.tbm.bextri.u32(i32 %tmp1, i32 2814) ret i32 %0 } define i64 @test_x86_tbm_bextri_u64(i64 %a) nounwind readnone { +; CHECK-LABEL: test_x86_tbm_bextri_u64: +; CHECK: # BB#0: # %entry +; CHECK-NEXT: bextr $2814, %rdi, %rax # imm = 0xAFE +; CHECK-NEXT: retq entry: - ; CHECK-LABEL: test_x86_tbm_bextri_u64: - ; CHECK-NOT: mov - ; CHECK: bextr $ %0 = tail call i64 @llvm.x86.tbm.bextri.u64(i64 %a, i64 2814) ret i64 %0 } @@ -33,10 +37,11 @@ entry: declare i64 @llvm.x86.tbm.bextri.u64(i64, i64) nounwind readnone define i64 @test_x86_tbm_bextri_u64_m(i64* nocapture %a) nounwind readonly { +; CHECK-LABEL: test_x86_tbm_bextri_u64_m: +; CHECK: # BB#0: # %entry +; CHECK-NEXT: bextr $2814, (%rdi), %rax # imm = 0xAFE +; CHECK-NEXT: retq entry: - ; CHECK-LABEL: test_x86_tbm_bextri_u64_m: - ; CHECK-NOT: mov - ; CHECK: bextr $ %tmp1 = load i64, i64* %a, align 8 %0 = tail call i64 @llvm.x86.tbm.bextri.u64(i64 %tmp1, i64 2814) ret i64 %0 -- 2.50.1