test_oris_1:
  #_ REGISTER_IN r4 0xDEADBEEF00000000
  oris r3, r4, 0xFEDC
  blr
  #_ REGISTER_OUT r3 0xDEADBEEFFEDC0000
  #_ REGISTER_OUT r4 0xDEADBEEF00000000

test_oris_1_constant:
  lis r4, 0xDEAD
  ori r4, r4, 0xBEEF
  sldi r4, r4, 32
  oris r3, r4, 0xFEDC
  blr
  #_ REGISTER_OUT r3 0xDEADBEEFFEDC0000
  #_ REGISTER_OUT r4 0xDEADBEEF00000000

test_oris_2:
  #_ REGISTER_IN r4 0xFFFFFFFFFFFFFFFF
  oris r3, r4, 0xFFFF
  blr
  #_ REGISTER_OUT r3 0xFFFFFFFFFFFFFFFF
  #_ REGISTER_OUT r4 0xFFFFFFFFFFFFFFFF

test_oris_2_constant:
  li r4, -1
  oris r3, r4, 0xFFFF
  blr
  #_ REGISTER_OUT r3 0xFFFFFFFFFFFFFFFF
  #_ REGISTER_OUT r4 0xFFFFFFFFFFFFFFFF

test_oris_3:
  #_ REGISTER_IN r4 0x0000000000000000
  oris r3, r4, 0xFFFF
  blr
  #_ REGISTER_OUT r3 0x00000000FFFF0000
  #_ REGISTER_OUT r4 0x0000000000000000

test_oris_3_constant:
  li r4, 0
  oris r3, r4, 0xFFFF
  blr
  #_ REGISTER_OUT r3 0x00000000FFFF0000
  #_ REGISTER_OUT r4 0x0000000000000000

test_oris_4:
  #_ REGISTER_IN r4 0x123456789ABC0000
  oris r3, r4, 0x0000
  blr
  #_ REGISTER_OUT r3 0x123456789ABC0000
  #_ REGISTER_OUT r4 0x123456789ABC0000

test_oris_4_constant:
  lis r4, 0x1234
  ori r4, r4, 0x5678
  sldi r4, r4, 32
  oris r4, r4, 0x9ABC
  oris r3, r4, 0x0000
  blr
  #_ REGISTER_OUT r3 0x123456789ABC0000
  #_ REGISTER_OUT r4 0x123456789ABC0000

test_oris_5:
  #_ REGISTER_IN r4 0xFFFFFFFE0000AAAA
  oris r3, r4, 0x5555
  blr
  #_ REGISTER_OUT r3 0xFFFFFFFE5555AAAA
  #_ REGISTER_OUT r4 0xFFFFFFFE0000AAAA

test_oris_5_constant:
  li r4, -1
  srdi r4, r4, 1
  sldi r4, r4, 1
  clrldi r4, r4, 32
  oris r4, r4, 0xAAAA
  sldi r4, r4, 32
  ori r4, r4, 0xAAAA
  oris r3, r4, 0x5555
  blr
  #_ REGISTER_OUT r3 0xFFFFFFFE5555AAAA
  #_ REGISTER_OUT r4 0xFFFFFFFE0000AAAA
