[llvm] a546b9b - [X86] setcc.ll - add "NOTBM" check-prefix for expected common code
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 28 12:41:56 PDT 2022
Author: Simon Pilgrim
Date: 2022-04-28T20:41:47+01:00
New Revision: a546b9b06bee92a90af19f80ef8f5f2a08676cc8
URL: https://github.com/llvm/llvm-project/commit/a546b9b06bee92a90af19f80ef8f5f2a08676cc8
DIFF: https://github.com/llvm/llvm-project/commit/a546b9b06bee92a90af19f80ef8f5f2a08676cc8.diff
LOG: [X86] setcc.ll - add "NOTBM" check-prefix for expected common code
Added:
Modified:
llvm/test/CodeGen/X86/setcc.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/setcc.ll b/llvm/test/CodeGen/X86/setcc.ll
index 9bac47c1a9d3..08f4fd4b59cd 100644
--- a/llvm/test/CodeGen/X86/setcc.ll
+++ b/llvm/test/CodeGen/X86/setcc.ll
@@ -1,8 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i686-apple-darwin | FileCheck %s --check-prefixes=X86
-; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s --check-prefixes=X64,X64-BASE
+; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s --check-prefixes=X64,X64-NOTBM
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+tbm | FileCheck %s --check-prefixes=X64,X64-TBM
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+bmi2 | FileCheck %s --check-prefixes=X64,X64-BMI2
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+bmi2 | FileCheck %s --check-prefixes=X64,X64-NOTBM
; rdar://7329206
define zeroext i16 @t1(i16 zeroext %x) nounwind readnone ssp {
@@ -281,27 +281,19 @@ define i16 @shift_and(i16 %a) {
; X86-NEXT: ## kill: def $ax killed $ax killed $eax
; X86-NEXT: retl
;
-; X64-BASE-LABEL: shift_and:
-; X64-BASE: ## %bb.0:
-; X64-BASE-NEXT: movl %edi, %eax
-; X64-BASE-NEXT: shrl $10, %eax
-; X64-BASE-NEXT: andl $1, %eax
-; X64-BASE-NEXT: ## kill: def $ax killed $ax killed $eax
-; X64-BASE-NEXT: retq
+; X64-NOTBM-LABEL: shift_and:
+; X64-NOTBM: ## %bb.0:
+; X64-NOTBM-NEXT: movl %edi, %eax
+; X64-NOTBM-NEXT: shrl $10, %eax
+; X64-NOTBM-NEXT: andl $1, %eax
+; X64-NOTBM-NEXT: ## kill: def $ax killed $ax killed $eax
+; X64-NOTBM-NEXT: retq
;
; X64-TBM-LABEL: shift_and:
; X64-TBM: ## %bb.0:
; X64-TBM-NEXT: bextrl $266, %edi, %eax ## imm = 0x10A
; X64-TBM-NEXT: ## kill: def $ax killed $ax killed $eax
; X64-TBM-NEXT: retq
-;
-; X64-BMI2-LABEL: shift_and:
-; X64-BMI2: ## %bb.0:
-; X64-BMI2-NEXT: movl %edi, %eax
-; X64-BMI2-NEXT: shrl $10, %eax
-; X64-BMI2-NEXT: andl $1, %eax
-; X64-BMI2-NEXT: ## kill: def $ax killed $ax killed $eax
-; X64-BMI2-NEXT: retq
%and = and i16 %a, 1024
%cmp = icmp ne i16 %and, 0
%conv = zext i1 %cmp to i16
More information about the llvm-commits
mailing list