aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/rsub64.h
blob: 397c973d4f6b6353e86e609c3a31597547b0992c (plain)
1
2
3
4
5
6
7
8
P_64_PROFILE({
  rd = (rs1 - rs2) >> 1;
  if (rs1 > 0 && rs2 < 0) {
    rd &= ~((reg_t)1 << 63);
  } else if(rs1 < 0 && rs2 > 0) {
    rd |= ((reg_t)1 << 63);
  }
})