[llvm] r354588 - [X86] Fix copy-paste error in @ccz flag.
Nirav Dave via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 21 07:28:31 PST 2019
Author: niravd
Date: Thu Feb 21 07:28:31 2019
New Revision: 354588
URL: http://llvm.org/viewvc/llvm-project?rev=354588&view=rev
Log:
[X86] Fix copy-paste error in @ccz flag.
@ccz operand should be equivalent to @cce.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
llvm/trunk/test/CodeGen/X86/inline-asm-flag-output.ll
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=354588&r1=354587&r2=354588&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Feb 21 07:28:31 2019
@@ -42511,7 +42511,7 @@ static X86::CondCode parseConstraintCode
.Case("{@ccbe}", X86::COND_BE)
.Case("{@ccc}", X86::COND_B)
.Case("{@cce}", X86::COND_E)
- .Case("{@ccz}", X86::COND_NE)
+ .Case("{@ccz}", X86::COND_E)
.Case("{@ccg}", X86::COND_G)
.Case("{@ccge}", X86::COND_GE)
.Case("{@ccl}", X86::COND_L)
Modified: llvm/trunk/test/CodeGen/X86/inline-asm-flag-output.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/inline-asm-flag-output.ll?rev=354588&r1=354587&r2=354588&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/inline-asm-flag-output.ll (original)
+++ llvm/trunk/test/CodeGen/X86/inline-asm-flag-output.ll Thu Feb 21 07:28:31 2019
@@ -219,7 +219,7 @@ define i32 @test_ccz(i64 %nr, i64* %addr
; X32-NEXT: #APP
; X32-NEXT: cmp %ecx,(%esi)
; X32-NEXT: #NO_APP
-; X32-NEXT: sete %al
+; X32-NEXT: setne %al
; X32-NEXT: popl %esi
; X32-NEXT: .cfi_def_cfa_offset 4
; X32-NEXT: retl
@@ -230,7 +230,7 @@ define i32 @test_ccz(i64 %nr, i64* %addr
; X64-NEXT: #APP
; X64-NEXT: cmp %rdi,(%rsi)
; X64-NEXT: #NO_APP
-; X64-NEXT: sete %al
+; X64-NEXT: setne %al
; X64-NEXT: retq
entry:
%cc = tail call i32 asm "cmp $2,$1", "={@ccz},=*m,r,~{cc},~{dirflag},~{fpsr},~{flags}"(i64* %addr, i64 %nr) nounwind
More information about the llvm-commits
mailing list