summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/RISCV/setcc-logic.ll
diff options
context:
space:
mode:
authorLuis Marques <luismarques@lowrisc.org>2019-09-17 10:52:09 +0000
committerLuis Marques <luismarques@lowrisc.org>2019-09-17 10:52:09 +0000
commit2d550d19b321837aac647ec9e8c5b6f26f682b17 (patch)
tree7f0ad38a58fa4517934ec23827d367b92cb284fa /llvm/test/CodeGen/RISCV/setcc-logic.ll
parent0b10da7cc786b36b8bf553222ac27a4170770110 (diff)
downloadbcm5719-llvm-2d550d19b321837aac647ec9e8c5b6f26f682b17.tar.gz
bcm5719-llvm-2d550d19b321837aac647ec9e8c5b6f26f682b17.zip
Revert Patch from Phabricator
This reverts r372092 (git commit e38695a0255c9e7b53639f349f8101bae1ce5c04) llvm-svn: 372104
Diffstat (limited to 'llvm/test/CodeGen/RISCV/setcc-logic.ll')
-rw-r--r--llvm/test/CodeGen/RISCV/setcc-logic.ll28
1 files changed, 14 insertions, 14 deletions
diff --git a/llvm/test/CodeGen/RISCV/setcc-logic.ll b/llvm/test/CodeGen/RISCV/setcc-logic.ll
index 0c29bf50523..72f797db15a 100644
--- a/llvm/test/CodeGen/RISCV/setcc-logic.ll
+++ b/llvm/test/CodeGen/RISCV/setcc-logic.ll
@@ -7,17 +7,17 @@
define i1 @and_icmp_eq(i32 %a, i32 %b, i32 %c, i32 %d) nounwind {
; RV32I-LABEL: and_icmp_eq:
; RV32I: # %bb.0:
+; RV32I-NEXT: xor a2, a2, a3
; RV32I-NEXT: xor a0, a0, a1
-; RV32I-NEXT: xor a1, a2, a3
-; RV32I-NEXT: or a0, a0, a1
+; RV32I-NEXT: or a0, a0, a2
; RV32I-NEXT: seqz a0, a0
; RV32I-NEXT: ret
;
; RV64I-LABEL: and_icmp_eq:
; RV64I: # %bb.0:
+; RV64I-NEXT: xor a2, a2, a3
; RV64I-NEXT: xor a0, a0, a1
-; RV64I-NEXT: xor a1, a2, a3
-; RV64I-NEXT: or a0, a0, a1
+; RV64I-NEXT: or a0, a0, a2
; RV64I-NEXT: slli a0, a0, 32
; RV64I-NEXT: srli a0, a0, 32
; RV64I-NEXT: seqz a0, a0
@@ -31,17 +31,17 @@ define i1 @and_icmp_eq(i32 %a, i32 %b, i32 %c, i32 %d) nounwind {
define i1 @or_icmp_ne(i32 %a, i32 %b, i32 %c, i32 %d) nounwind {
; RV32I-LABEL: or_icmp_ne:
; RV32I: # %bb.0:
+; RV32I-NEXT: xor a2, a2, a3
; RV32I-NEXT: xor a0, a0, a1
-; RV32I-NEXT: xor a1, a2, a3
-; RV32I-NEXT: or a0, a0, a1
+; RV32I-NEXT: or a0, a0, a2
; RV32I-NEXT: snez a0, a0
; RV32I-NEXT: ret
;
; RV64I-LABEL: or_icmp_ne:
; RV64I: # %bb.0:
+; RV64I-NEXT: xor a2, a2, a3
; RV64I-NEXT: xor a0, a0, a1
-; RV64I-NEXT: xor a1, a2, a3
-; RV64I-NEXT: or a0, a0, a1
+; RV64I-NEXT: or a0, a0, a2
; RV64I-NEXT: slli a0, a0, 32
; RV64I-NEXT: srli a0, a0, 32
; RV64I-NEXT: snez a0, a0
@@ -102,22 +102,22 @@ define i1 @and_icmps_const_1bit_diff(i32 %x) nounwind {
define i1 @and_icmps_const_not1bit_diff(i32 %x) nounwind {
; RV32I-LABEL: and_icmps_const_not1bit_diff:
; RV32I: # %bb.0:
-; RV32I-NEXT: xori a1, a0, 44
+; RV32I-NEXT: xori a1, a0, 92
; RV32I-NEXT: snez a1, a1
-; RV32I-NEXT: xori a0, a0, 92
+; RV32I-NEXT: xori a0, a0, 44
; RV32I-NEXT: snez a0, a0
-; RV32I-NEXT: and a0, a1, a0
+; RV32I-NEXT: and a0, a0, a1
; RV32I-NEXT: ret
;
; RV64I-LABEL: and_icmps_const_not1bit_diff:
; RV64I: # %bb.0:
; RV64I-NEXT: slli a0, a0, 32
; RV64I-NEXT: srli a0, a0, 32
-; RV64I-NEXT: xori a1, a0, 44
+; RV64I-NEXT: xori a1, a0, 92
; RV64I-NEXT: snez a1, a1
-; RV64I-NEXT: xori a0, a0, 92
+; RV64I-NEXT: xori a0, a0, 44
; RV64I-NEXT: snez a0, a0
-; RV64I-NEXT: and a0, a1, a0
+; RV64I-NEXT: and a0, a0, a1
; RV64I-NEXT: ret
%a = icmp ne i32 %x, 44
%b = icmp ne i32 %x, 92
OpenPOWER on IntegriCloud