# vupkd3d128 dest, src, type
# type:
#   0 = PACK_TYPE_D3DCOLOR
#   1 = PACK_TYPE_SHORT_2
#   3 = PACK_TYPE_FLOAT16_2
#   5 = PACK_TYPE_FLOAT16_4

test_vupkd3d128_d3dcolor:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 04010203]
  vupkd3d128 v3, v3, 0
  blr
  #_ REGISTER_OUT v3 [3f800001, 3f800002, 3f800003, 3f800004]

test_vupkd3d128_short2_0:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 7FFF8001]
  vupkd3d128 v3, v3, 1
  blr
  #_ REGISTER_OUT v3 [3F8000FF, 3F800080, 3F800001, 3F80007F]
test_vupkd3d128_short2_1:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 4000C000]
  vupkd3d128 v3, v3, 1
  blr
  #_ REGISTER_OUT v3 [3F800000, 3F8000C0, 3F800000, 3F800040]
test_vupkd3d128_short2_2:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 7FFFF333]
  vupkd3d128 v3, v3, 1
  blr
  #_ REGISTER_OUT v3 [3F8000FF, 3F8000F3, 3F800033, 3F80007F]
test_vupkd3d128_short2_3:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 00008000]
  vupkd3d128 v3, v3, 1
  blr
  #_ REGISTER_OUT v3 [3F800000, 3F800080, 3F800000, 3F800000]

test_vupkd3d128_short4_0:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, 7FFFFFFF, 007FFFF8]
  vupkd3d128 v3, v3, 4
  blr
  #_ REGISTER_OUT v3 [4040007F, 403FFFF8, 00000000, 3F800000]

test_vupkd3d128_float16_2_0:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 3800B800]
  vupkd3d128 v3, v3, 3
  blr
  #_ REGISTER_OUT v3 [3F800000, 3F8000B8, 3F800000, 3F800038]

test_vupkd3d128_float16_4_0:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, 3800B801, 3802B803]
  vupkd3d128 v3, v3, 5
  blr
  #_ REGISTER_OUT v3 [40403802, 403FB803, 00000000, 3F800000]

test_vupkd3d128_uint_2101010_0:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 400001FF]
  vupkd3d128 v3, v3, 2
  blr
  #_ REGISTER_OUT v3 [3F800000, 3F800001, 3F8000FF, 3F800040]
test_vupkd3d128_uint_2101010_1:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 40000201]
  vupkd3d128 v3, v3, 2
  blr
  #_ REGISTER_OUT v3 [3F800000, 3F800002, 3F800001, 3F800040]
test_vupkd3d128_uint_2101010_2:
  #_ REGISTER_IN v3 [CDCDCDCD, CDCDCDCD, CDCDCDCD, 40000200]
  vupkd3d128 v3, v3, 2
  blr
  #_ REGISTER_OUT v3 [3F800000, 3F800002, 3F800000, 3F800040]
