-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Do not use AND8ri8 in AVX512 pattern This variant is (as documented in the TD) for disassembler use only, and should not be used in patterns - it is longer, and is broken on 64-bit. llvm-svn: 287855
- Loading branch information
Guy Blank
committed
Nov 24, 2016
1 parent
7591dd9
commit cdf53e3
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
; RUN: llc -mtriple=x86_64-pc-linux -mattr=+avx512f --show-mc-encoding < %s | FileCheck %s | ||
|
||
declare i1 @bar() | ||
|
||
; CHECK-LABEL: @foo | ||
; CHECK-NOT: andb {{.*}} # encoding: [0x82, | ||
define i1 @foo(i1 %i) nounwind { | ||
entry: | ||
br i1 %i, label %if, label %else | ||
|
||
if: | ||
%r = call i1 @bar() | ||
br label %else | ||
|
||
else: | ||
%ret = phi i1 [%r, %if], [true, %entry] | ||
ret i1 %ret | ||
} |