diff options
Diffstat (limited to 'llvm/test/CodeGen/Mips')
-rw-r--r-- | llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/select.ll | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/select.ll b/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/select.ll index f15977cf6b7..2753fe157a5 100644 --- a/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/select.ll +++ b/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/select.ll @@ -64,14 +64,12 @@ entry: define i32 @select_with_negation(i32 %a, i32 %b, i32 %x, i32 %y) { ; MIPS32-LABEL: select_with_negation: ; MIPS32: # %bb.0: # %entry -; MIPS32-NEXT: lui $1, 65535 -; MIPS32-NEXT: ori $1, $1, 65535 ; MIPS32-NEXT: slt $4, $4, $5 -; MIPS32-NEXT: xor $1, $4, $1 -; MIPS32-NEXT: lui $4, 0 -; MIPS32-NEXT: ori $4, $4, 1 -; MIPS32-NEXT: and $1, $1, $4 -; MIPS32-NEXT: movn $7, $6, $1 +; MIPS32-NEXT: not $4, $4 +; MIPS32-NEXT: lui $5, 0 +; MIPS32-NEXT: ori $5, $5, 1 +; MIPS32-NEXT: and $4, $4, $5 +; MIPS32-NEXT: movn $7, $6, $4 ; MIPS32-NEXT: move $2, $7 ; MIPS32-NEXT: jr $ra ; MIPS32-NEXT: nop |