Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86][FastISel] Use a COPY from K register to a GPR instead of a K op…
…eration The KORTEST was introduced due to a bug where a TEST instruction used a K register. but, turns out that the opposite case of KORTEST using a GPR is now happening The change removes the KORTEST flow and adds a COPY instruction from the K reg to a GPR. Differential Revision: https://reviews.llvm.org/D24953 llvm-svn: 282580
- Loading branch information
Guy Blank
committed
Sep 28, 2016
1 parent
55b8eaa
commit 2bdc74a
Showing
4 changed files
with
54 additions
and
31 deletions.
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
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,15 @@ | ||
; RUN: llc < %s -fast-isel -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f | FileCheck %s | ||
|
||
define i1 @test_i1(i1* %b) { | ||
; CHECK-LABEL: test_i1: | ||
; CHECK: # BB#0: # %entry | ||
; CHECK-NEXT: testb $1, (%rdi) | ||
entry: | ||
%0 = load i1, i1* %b, align 1 | ||
br i1 %0, label %in, label %out | ||
in: | ||
ret i1 0 | ||
out: | ||
ret i1 1 | ||
} | ||
|
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