[X86] Fix copy paste mistake in @ccnp flag.
authorCraig Topper <craig.topper@intel.com>
Sat, 19 Sep 2020 01:00:06 +0000 (18:00 -0700)
committerCraig Topper <craig.topper@intel.com>
Sat, 19 Sep 2020 04:28:01 +0000 (21:28 -0700)
We were treating @ccp and @ccnp the same.

llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/inline-asm-flag-output.ll

index 5ec814b..2070517 100644 (file)
@@ -49954,7 +49954,7 @@ static X86::CondCode parseConstraintCode(llvm::StringRef Constraint) {
                            .Case("{@ccnl}", X86::COND_GE)
                            .Case("{@ccnle}", X86::COND_G)
                            .Case("{@ccno}", X86::COND_NO)
-                           .Case("{@ccnp}", X86::COND_P)
+                           .Case("{@ccnp}", X86::COND_NP)
                            .Case("{@ccns}", X86::COND_NS)
                            .Case("{@cco}", X86::COND_O)
                            .Case("{@ccp}", X86::COND_P)
index af7a437..d9ae4f8 100644 (file)
@@ -726,7 +726,7 @@ define i32 @test_ccnp(i64 %nr, i64* %addr) nounwind {
 ; X32-NEXT:    #APP
 ; X32-NEXT:    cmp %ecx,(%esi)
 ; X32-NEXT:    #NO_APP
-; X32-NEXT:    setp %al
+; X32-NEXT:    setnp %al
 ; X32-NEXT:    popl %esi
 ; X32-NEXT:    retl
 ;
@@ -736,7 +736,7 @@ define i32 @test_ccnp(i64 %nr, i64* %addr) nounwind {
 ; X64-NEXT:    #APP
 ; X64-NEXT:    cmp %rdi,(%rsi)
 ; X64-NEXT:    #NO_APP
-; X64-NEXT:    setp %al
+; X64-NEXT:    setnp %al
 ; X64-NEXT:    retq
 entry:
   %cc = tail call i32 asm "cmp $2,$1", "={@ccnp},=*m,r,~{cc},~{dirflag},~{fpsr},~{flags}"(i64* %addr, i64 %nr) nounwind