Skip to content

Commit a546b9b

Browse files
committed
[X86] setcc.ll - add "NOTBM" check-prefix for expected common code
1 parent f4e1eaa commit a546b9b

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

llvm/test/CodeGen/X86/setcc.ll

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc < %s -mtriple=i686-apple-darwin | FileCheck %s --check-prefixes=X86
3-
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s --check-prefixes=X64,X64-BASE
3+
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s --check-prefixes=X64,X64-NOTBM
44
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+tbm | FileCheck %s --check-prefixes=X64,X64-TBM
5-
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+bmi2 | FileCheck %s --check-prefixes=X64,X64-BMI2
5+
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+bmi2 | FileCheck %s --check-prefixes=X64,X64-NOTBM
66
; rdar://7329206
77

88
define zeroext i16 @t1(i16 zeroext %x) nounwind readnone ssp {
@@ -281,27 +281,19 @@ define i16 @shift_and(i16 %a) {
281281
; X86-NEXT: ## kill: def $ax killed $ax killed $eax
282282
; X86-NEXT: retl
283283
;
284-
; X64-BASE-LABEL: shift_and:
285-
; X64-BASE: ## %bb.0:
286-
; X64-BASE-NEXT: movl %edi, %eax
287-
; X64-BASE-NEXT: shrl $10, %eax
288-
; X64-BASE-NEXT: andl $1, %eax
289-
; X64-BASE-NEXT: ## kill: def $ax killed $ax killed $eax
290-
; X64-BASE-NEXT: retq
284+
; X64-NOTBM-LABEL: shift_and:
285+
; X64-NOTBM: ## %bb.0:
286+
; X64-NOTBM-NEXT: movl %edi, %eax
287+
; X64-NOTBM-NEXT: shrl $10, %eax
288+
; X64-NOTBM-NEXT: andl $1, %eax
289+
; X64-NOTBM-NEXT: ## kill: def $ax killed $ax killed $eax
290+
; X64-NOTBM-NEXT: retq
291291
;
292292
; X64-TBM-LABEL: shift_and:
293293
; X64-TBM: ## %bb.0:
294294
; X64-TBM-NEXT: bextrl $266, %edi, %eax ## imm = 0x10A
295295
; X64-TBM-NEXT: ## kill: def $ax killed $ax killed $eax
296296
; X64-TBM-NEXT: retq
297-
;
298-
; X64-BMI2-LABEL: shift_and:
299-
; X64-BMI2: ## %bb.0:
300-
; X64-BMI2-NEXT: movl %edi, %eax
301-
; X64-BMI2-NEXT: shrl $10, %eax
302-
; X64-BMI2-NEXT: andl $1, %eax
303-
; X64-BMI2-NEXT: ## kill: def $ax killed $ax killed $eax
304-
; X64-BMI2-NEXT: retq
305297
%and = and i16 %a, 1024
306298
%cmp = icmp ne i16 %and, 0
307299
%conv = zext i1 %cmp to i16

0 commit comments

Comments
 (0)